org.sourcejammer.server.source
Interface TextLineIterator

All Known Implementing Classes:
SimpleTextLineIterator, TextLineIteratorOutput

public interface TextLineIterator


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.
 

Method Detail

hasMoreLines

public boolean hasMoreLines()
Returns true if this text line iterator has more lines.


getNextLine

public java.lang.String getNextLine()
                             throws EndOfSourceException
Returns the next line, if there are more lines to return.

Throws:
EndOfSourceException - -- if there are no more lines to return.

skipLines

public void skipLines(int numLines)
               throws EndOfSourceException
Skips the requested number of lines.

Throws:
EndOfSourceException - -- if skipping requested number of lines would point index past end of source file.


Copyright © 2003 Soucejammer project.