org.sourcejammer.server.source
Class TextLineIteratorOutput

java.lang.Object
  |
  +--org.sourcejammer.server.source.TextLineIteratorOutput
All Implemented Interfaces:
TextLineIterator
Direct Known Subclasses:
TextLineAdderIterator, TextLineReader

public abstract class TextLineIteratorOutput
extends java.lang.Object
implements TextLineIterator


Constructor Summary
TextLineIteratorOutput()
           
 
Method Summary
abstract  java.lang.String getNextLine()
          Returns the next line, if there are more lines to return.
abstract  boolean hasMoreLines()
          Returns true if this text line iterator has more lines.
abstract  void skipLines(int numLines)
          Skips the requested number of lines.
abstract  char[] toCharArray()
           
abstract  char[] toCharArray(java.lang.String eol)
           
abstract  java.lang.String toString()
           
abstract  java.lang.String toString(java.lang.String eol)
           
abstract  java.lang.StringBuffer toStringBuffer(java.lang.String eol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextLineIteratorOutput

public TextLineIteratorOutput()
Method Detail

hasMoreLines

public abstract boolean hasMoreLines()
Description copied from interface: TextLineIterator
Returns true if this text line iterator has more lines.

Specified by:
hasMoreLines in interface TextLineIterator

getNextLine

public abstract java.lang.String getNextLine()
                                      throws EndOfSourceException
Description copied from interface: TextLineIterator
Returns the next line, if there are more lines to return.

Specified by:
getNextLine in interface TextLineIterator
Throws:
EndOfSourceException - -- if there are no more lines to return.

skipLines

public abstract void skipLines(int numLines)
                        throws EndOfSourceException
Description copied from interface: TextLineIterator
Skips the requested number of lines.

Specified by:
skipLines in interface TextLineIterator
Throws:
EndOfSourceException - -- if skipping requested number of lines would point index past end of source file.

toStringBuffer

public abstract java.lang.StringBuffer toStringBuffer(java.lang.String eol)

toString

public abstract java.lang.String toString(java.lang.String eol)

toString

public abstract java.lang.String toString()
Overrides:
toString in class java.lang.Object

toCharArray

public abstract char[] toCharArray(java.lang.String eol)

toCharArray

public abstract char[] toCharArray()


Copyright © 2003 Soucejammer project.