public class InplaceFileConverter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
BUFFER_LEN |
(package private) LineConverter |
lineConverter |
(package private) java.lang.String |
lineTerminator |
(package private) ProgressListener |
pl |
| Constructor and Description |
|---|
InplaceFileConverter(RuleSet ruleSet,
ProgressListener pl) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
convert(java.io.File file) |
private byte[] |
convertIntoTempByteArray(byte[] input) |
private byte[] |
readIntoByteArray(java.io.File file) |
private void |
writeConvertedBytesIntoFile(java.io.File file,
byte[] convertedBytes) |
private void |
writeReplacement(java.io.OutputStream os,
java.lang.String[] replacement) |
static final int BUFFER_LEN
final LineConverter lineConverter
final java.lang.String lineTerminator
final ProgressListener pl
InplaceFileConverter(RuleSet ruleSet, ProgressListener pl)
private byte[] readIntoByteArray(java.io.File file)
throws java.io.IOException
java.io.IOExceptionvoid convert(java.io.File file)
throws java.io.IOException
java.io.IOExceptionprivate void writeConvertedBytesIntoFile(java.io.File file,
byte[] convertedBytes)
throws java.io.IOException
java.io.IOExceptionprivate byte[] convertIntoTempByteArray(byte[] input)
throws java.io.IOException
java.io.IOExceptionprivate void writeReplacement(java.io.OutputStream os,
java.lang.String[] replacement)
throws java.io.IOException
java.io.IOException