org.sourcejammer.server.source
Class SkipLines

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

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

See Also:
Serialized Form

Field Summary
private  int miNumLinesToSkip
           
 
Constructor Summary
SkipLines()
           
 
Method Summary
 TextLineAdder build(TextLineIterator parent, TextLineAdder buildSoFar)
          Executes this build step on TextLineAdder buildSoFar.
 int numChars()
           
 void setNumLinesToSkip(int i)
           
 int size()
          Always returns 0 since this build step adds no chars to output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

miNumLinesToSkip

private int miNumLinesToSkip
Constructor Detail

SkipLines

public SkipLines()
Method Detail

size

public int size()
Always returns 0 since this build step adds no chars to output.

Specified by:
size in interface TextBuildStepInf

numChars

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

setNumLinesToSkip

public void setNumLinesToSkip(int i)

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


Copyright 2003 Soucejammer project.