|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.server.source.SimpleTextLineIterator
Field Summary | |
private int |
miIndex
|
private java.util.Vector |
mvecLines
|
Constructor Summary | |
SimpleTextLineIterator(java.util.Vector vecLines)
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Vector mvecLines
private int miIndex
Constructor Detail |
public SimpleTextLineIterator(java.util.Vector vecLines)
Method Detail |
public boolean hasMoreLines()
TextLineIterator
hasMoreLines
in interface TextLineIterator
public java.lang.String getNextLine() throws EndOfSourceException
TextLineIterator
getNextLine
in interface TextLineIterator
EndOfSourceException
- -- if there are no more lines to return.public void skipLines(int numLines) throws EndOfSourceException
TextLineIterator
skipLines
in interface TextLineIterator
EndOfSourceException
- -- if skipping requested number of lines
would point index past end of source file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |