Package org.slf4j.migrator
Class InplaceFileConverter
- java.lang.Object
-
- org.slf4j.migrator.InplaceFileConverter
-
public class InplaceFileConverter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static intBUFFER_LEN(package private) LineConverterlineConverter(package private) java.lang.StringlineTerminator(package private) ProgressListenerpl
-
Constructor Summary
Constructors Constructor Description InplaceFileConverter(RuleSet ruleSet, ProgressListener pl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidconvert(java.io.File file)private byte[]convertIntoTempByteArray(byte[] input)private byte[]readIntoByteArray(java.io.File file)private voidwriteConvertedBytesIntoFile(java.io.File file, byte[] convertedBytes)private voidwriteReplacement(java.io.OutputStream os, java.lang.String[] replacement)
-
-
-
Field Detail
-
BUFFER_LEN
static final int BUFFER_LEN
- See Also:
- Constant Field Values
-
lineConverter
final LineConverter lineConverter
-
lineTerminator
final java.lang.String lineTerminator
-
pl
final ProgressListener pl
-
-
Constructor Detail
-
InplaceFileConverter
InplaceFileConverter(RuleSet ruleSet, ProgressListener pl)
-
-
Method Detail
-
readIntoByteArray
private byte[] readIntoByteArray(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
convert
void convert(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
writeConvertedBytesIntoFile
private void writeConvertedBytesIntoFile(java.io.File file, byte[] convertedBytes) throws java.io.IOException- Throws:
java.io.IOException
-
convertIntoTempByteArray
private byte[] convertIntoTempByteArray(byte[] input) throws java.io.IOException- Throws:
java.io.IOException
-
writeReplacement
private void writeReplacement(java.io.OutputStream os, java.lang.String[] replacement) throws java.io.IOException- Throws:
java.io.IOException
-
-