org.sourcejammer.server.source
Class TextDelta
java.lang.Object
|
+--org.sourcejammer.server.source.TextDelta
- All Implemented Interfaces:
- Delta, java.io.Serializable
- public class TextDelta
- extends java.lang.Object
- implements java.io.Serializable, Delta
This file represents the delta between two text files.
- See Also:
- Serialized Form
Constructor Summary |
TextDelta()
Default constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextDelta
public TextDelta()
- Default constructor.
addBuildStep
public void addBuildStep(TextBuildStepInf step)
- Adds a TextBuildStep to this TextDelta. Note that steps are added in
sequence.
buildFile
public java.io.ByteArrayOutputStream buildFile(SourceInputStream parent,
int iEndOfLineType)
throws InvalidSourceException,
java.io.IOException
- Builds a text file from the parent using the build steps in this
Delta. Returns the text file, with requested end of line chars, as
a ByteArrayOutputStream.
buildFileTextLineIterator
public TextLineIterator buildFileTextLineIterator(TextLineIterator parent)
throws InvalidSourceException,
java.io.IOException
- Builds a text file from the parent using the build steps. This method
uses a TextLineIterator parent and returns teh file as a TextLineIterator.