|
SourceJammer 1.2.0.1 May 20, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.sourcejammer.server.source.TextLineIteratorOutput
|
+--org.sourcejammer.server.source.TextLineAdderIterator
Builds a text file like TextLineAdder and allows iteration through lines like TextLineIterator.
| Constructor Summary | |
TextLineAdderIterator()
|
|
| Method Summary | |
java.lang.String |
getNextLine()
Returns the next line, if there are more lines to return. |
boolean |
hasMoreLines()
Returns true if this text line iterator has more lines. |
void |
skipLines(int numLines)
Skips the requested number of lines. |
char[] |
toCharArray()
|
char[] |
toCharArray(java.lang.String eol)
|
java.lang.String |
toString()
Returns contents of this TextLineAdderIterator (the entire text file) as a String, the default end of line chars (from AppConfig) as the end of line String. |
java.lang.String |
toString(java.lang.String eol)
Returns contents of this TextLineAdderIterator (the entire text file) as a String, using the passed in eol as the end of line String. |
java.lang.StringBuffer |
toStringBuffer(java.lang.String eol)
Returns contents of this TextLineAdderIterator (the entire text file) as a StringBuffer, using the passed in eol as the end of line String. |
void |
writeLine(char[] line)
|
void |
writeLine(java.lang.String sLine)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TextLineAdderIterator()
| Method Detail |
public void writeLine(char[] line)
writeLine in interface TextLineAdderpublic void writeLine(java.lang.String sLine)
writeLine in interface TextLineAdderpublic boolean hasMoreLines()
TextLineIteratorhasMoreLines in class TextLineIteratorOutput
public java.lang.String getNextLine()
throws EndOfSourceException
getNextLine in class TextLineIteratorOutputEndOfSourceException - -- if there are no more lines to return.
public void skipLines(int numLines)
throws EndOfSourceException
skipLines in class TextLineIteratorOutputEndOfSourceException - -- if skipping requested number of lines
would point index past end of source file.public java.lang.StringBuffer toStringBuffer(java.lang.String eol)
toStringBuffer in class TextLineIteratorOutputpublic java.lang.String toString(java.lang.String eol)
toString in class TextLineIteratorOutputpublic java.lang.String toString()
toString in class TextLineIteratorOutputpublic char[] toCharArray(java.lang.String eol)
toCharArray in class TextLineIteratorOutputpublic char[] toCharArray()
toCharArray in class TextLineIteratorOutput
|
SourceJammer 1.2.0.1 May 20, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||