public class WriteRcsDiffFilePreprocessor extends java.lang.Object implements WriteTextFilePreprocessor
| Constructor and Description |
|---|
WriteRcsDiffFilePreprocessor() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 WriteTextFilePreprocessorprocessedInput - 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.