|
SourceJammer 1.3.0 November 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 TextLineAdder
public void writeLine(java.lang.String sLine)
writeLine
in interface TextLineAdder
public boolean hasMoreLines()
TextLineIterator
hasMoreLines
in class TextLineIteratorOutput
public java.lang.String getNextLine() throws EndOfSourceException
getNextLine
in class TextLineIteratorOutput
EndOfSourceException
- -- if there are no more lines to return.public void skipLines(int numLines) throws EndOfSourceException
skipLines
in class TextLineIteratorOutput
EndOfSourceException
- -- 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 TextLineIteratorOutput
public java.lang.String toString(java.lang.String eol)
toString
in class TextLineIteratorOutput
public java.lang.String toString()
toString
in class TextLineIteratorOutput
public char[] toCharArray(java.lang.String eol)
toCharArray
in class TextLineIteratorOutput
public char[] toCharArray()
toCharArray
in class TextLineIteratorOutput
|
SourceJammer 1.3.0 November 20, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |