org.sourcejammer.server.source
Class ReadLines

java.lang.Object
  |
  +--org.sourcejammer.server.source.ReadLines
All Implemented Interfaces:
java.io.Serializable, TextBuildStepInf

public class ReadLines
extends java.lang.Object
implements java.io.Serializable, TextBuildStepInf

See Also:
Serialized Form

Field Summary
private  char[] mcaEndOfLine
           
private  int miNumChars
           
private  int miNumLinesToRead
           
private  int miSize
           
 
Constructor Summary
ReadLines()
           
 
Method Summary
 TextLineAdder build(TextLineIterator parent, TextLineAdder buildSoFar)
          Executes this build step on TextLineAdder buildSoFar.
 int numChars()
           
 void setEndOfLine(char[] endOfLine)
           
 void setNumChars(int i)
           
 void setNumLinesToRead(int i)
           
 void setSize(int i)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

miNumLinesToRead

private int miNumLinesToRead

miNumChars

private int miNumChars

miSize

private int miSize

mcaEndOfLine

private char[] mcaEndOfLine
Constructor Detail

ReadLines

public ReadLines()
Method Detail

setNumLinesToRead

public void setNumLinesToRead(int i)

setNumChars

public void setNumChars(int i)

setSize

public void setSize(int i)

setEndOfLine

public void setEndOfLine(char[] endOfLine)

build

public TextLineAdder build(TextLineIterator parent,
                           TextLineAdder buildSoFar)
                    throws InvalidSourceException
Description copied from interface: TextBuildStepInf
Executes this build step on TextLineAdder buildSoFar.

Specified by:
build in interface TextBuildStepInf
Parameters:
parent - -- TextLineIterator object of parent, or old version of this source file.
buildSoFar - -- The new file being built. This object is modified by either adding, skipping, or reading text lines from parent
InvalidSourceException

size

public int size()
Specified by:
size in interface TextBuildStepInf

numChars

public int numChars()
Specified by:
numChars in interface TextBuildStepInf


Copyright 2003 Soucejammer project.