|
SourceJammer 1.1.0 March 1, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JLibDiff.SJDiff | +--org.sourcejammer.server.source.TextDiff
Builds a diff from two text files and can reconstruct the second file when passed the first, using the type of EOL characters requested.
Constructor Summary | |
TextDiff()
Constructs an empty TextDiff. |
|
TextDiff(TextLineReader fileOne,
TextLineReader fileTwo)
Constructs a TextDiff using the two TextLineReaders. |
|
TextDiff(java.util.Vector v)
|
Method Summary | |
java.io.ByteArrayOutputStream |
buildFile(SourceInputStream parent,
int iEndOfLineType)
Builds a text file from the parent using the build steps in this Delta. |
TextLineIteratorOutput |
buildFileTextLineIterator(TextLineIteratorOutput parent)
Reconstructs fileTwo and returns it as a TextLineIterator. |
java.lang.String |
clipReturnCharFromDiffLine(java.lang.String line,
java.lang.String sEOL,
int iEOLLength)
Clips the specified string from the end of the line. |
Methods inherited from class JLibDiff.SJDiff |
accept,
diffBuffer,
diffByteArray,
diffFile,
diffString,
diffTextLineIterator,
diffTextLineReader,
getHunk,
getUnderlyingVector,
hunkAt,
numberOfHunk,
print,
setEndOfLine,
supressEndOfLine |
Constructor Detail |
public TextDiff()
public TextDiff(java.util.Vector v)
public TextDiff(TextLineReader fileOne, TextLineReader fileTwo) throws java.io.IOException, EndOfSourceException
Method Detail |
public TextLineIteratorOutput buildFileTextLineIterator(TextLineIteratorOutput parent) throws InvalidSourceException, java.io.IOException, EndOfSourceException
parent
- -- fileOne as a TextLineReader.requestedEOL
- - End of Line characters to use in returned file.public java.lang.String clipReturnCharFromDiffLine(java.lang.String line, java.lang.String sEOL, int iEOLLength)
public java.io.ByteArrayOutputStream buildFile(SourceInputStream parent, int iEndOfLineType) throws InvalidSourceException, java.io.IOException, EndOfSourceException
|
SourceJammer 1.1.0 March 1, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |