org.sourcejammer.server.source
Class TextDelta

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

Deprecated. This clas is deprecated. Only kept in here in case conversion from old text file format is required. This file represents the delta between two text files. This class only remains in the SJ code base to convert files originally save previous to SJ 1.1.

public class TextDelta
extends java.lang.Object
implements java.io.Serializable, Delta

See Also:
Serialized Form

Field Summary
private  int miNewFileChars
          Deprecated.  
private  int miNewFileSize
          Deprecated.  
private  java.util.Vector mvecBuildSteps
          Deprecated.  
 
Constructor Summary
TextDelta()
          Deprecated. Default constructor.
 
Method Summary
 void addBuildStep(TextBuildStepInf step)
          Deprecated. Adds a TextBuildStep to this TextDelta.
 java.io.ByteArrayOutputStream buildFile(SourceInputStream parent, int iEndOfLineType)
          Deprecated. Builds a text file from the parent using the build steps in this Delta.
 TextLineIterator buildFileTextLineIterator(TextLineIterator parent)
          Deprecated. Builds a text file from the parent using the build steps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

miNewFileSize

private int miNewFileSize
Deprecated. 

miNewFileChars

private int miNewFileChars
Deprecated. 

mvecBuildSteps

private java.util.Vector mvecBuildSteps
Deprecated. 
Constructor Detail

TextDelta

public TextDelta()
Deprecated. 
Default constructor.

Method Detail

addBuildStep

public void addBuildStep(TextBuildStepInf step)
Deprecated. 
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
Deprecated. 
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.

InvalidSourceException
java.io.IOException

buildFileTextLineIterator

public TextLineIterator buildFileTextLineIterator(TextLineIterator parent)
                                           throws InvalidSourceException,
                                                  java.io.IOException
Deprecated. 
Builds a text file from the parent using the build steps. This method uses a TextLineIterator parent and returns teh file as a TextLineIterator.

InvalidSourceException
java.io.IOException


Copyright 2003 Soucejammer project.