|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.cvsclient.file.WriteRcsDiffFilePreprocessor
public class WriteRcsDiffFilePreprocessor
File Processor that handles processing of rcs-diff response. (aka diff -n format) The original file is read and a merge is created. At the same time the correct line-ending is processed. It's possible to set the processor the preffered line-ending. The default is dependant on the platform.
Constructor Summary | |
---|---|
WriteRcsDiffFilePreprocessor()
|
Method Summary | |
---|---|
void |
copyTextFileToLocation(java.io.InputStream processedInput,
java.io.File fileToWrite,
OutputStreamProvider customOutput)
Processes the diff and merges it with the original file. |
java.lang.String |
getLineEnding()
Gets the value of lineending used when writing the resulting file. |
void |
setLineEnding(java.lang.String lineEnding)
Setter for lineEnding used to write the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WriteRcsDiffFilePreprocessor()
Method Detail |
---|
public java.lang.String getLineEnding()
public void setLineEnding(java.lang.String lineEnding)
lineEnding
- New value of property lineEnding.public void copyTextFileToLocation(java.io.InputStream processedInput, java.io.File fileToWrite, OutputStreamProvider customOutput) throws java.io.IOException
copyTextFileToLocation
in interface WriteTextFilePreprocessor
processedInput
- the stored diff.fileToWrite
- the resulting file and
the original that is merged as the same time.customOutput
-
java.io.IOException
- if any IO operation fails.
The original file is replaced by the merge only if no excpetion is thrown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |