|
SourceJammer 1.1.0 March 1, 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)
public void writeLine(java.lang.String sLine)
public boolean hasMoreLines()
public java.lang.String getNextLine() throws EndOfSourceException
public void skipLines(int numLines) throws EndOfSourceException
public java.lang.StringBuffer toStringBuffer(java.lang.String eol)
public java.lang.String toString(java.lang.String eol)
public java.lang.String toString()
public char[] toCharArray(java.lang.String eol)
public char[] toCharArray()
|
SourceJammer 1.1.0 March 1, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |