org.sourcejammer.server.source
Class AddLines

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

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

See Also:
Serialized Form

Field Summary
private  char[] mcaEndOfLine
           
private  int miNumChars
           
private  int miSize
           
private  TextLineIterator moLines
           
 
Constructor Summary
AddLines()
           
 
Method Summary
 TextLineAdder build(TextLineIterator parent, TextLineAdder buildSoFar)
          Executes this build step on TextLineAdder buildSoFar.
 int numChars()
           
 void setEndOfLine(char[] endOfLine)
           
 void setLineIterator(TextLineIterator lines)
           
 void setNumChars(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

moLines

private TextLineIterator moLines

miSize

private int miSize

mcaEndOfLine

private char[] mcaEndOfLine

miNumChars

private int miNumChars
Constructor Detail

AddLines

public AddLines()
Method Detail

setLineIterator

public void setLineIterator(TextLineIterator lines)

setSize

public void setSize(int i)

setNumChars

public void setNumChars(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.