public class WriteRcsDiffFilePreprocessor extends Object implements WriteTextFilePreprocessor
Constructor and Description |
---|
WriteRcsDiffFilePreprocessor() |
Modifier and Type | Method and Description |
---|---|
void |
copyTextFileToLocation(InputStream processedInput,
File fileToWrite,
OutputStreamProvider customOutput)
Processes the diff and merges it with the original file.
|
String |
getLineEnding()
Gets the value of lineending used when writing the resulting file.
|
void |
setLineEnding(String lineEnding)
Setter for lineEnding used to write the file.
|
public String getLineEnding()
public void setLineEnding(String lineEnding)
lineEnding
- New value of property lineEnding.public void copyTextFileToLocation(InputStream processedInput, File fileToWrite, OutputStreamProvider customOutput) throws IOException
copyTextFileToLocation
in interface WriteTextFilePreprocessor
processedInput
- the stored diff.fileToWrite
- the resulting file and the original that is merged as the same
time.customOutput
- IOException
- if any IO operation fails. The original file is replaced by
the merge only if no excpetion is thrown.Copyright © 2016. All rights reserved.