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 int
BUFFER_LEN
(package private) LineConverter
lineConverter
(package private) java.lang.String
lineTerminator
(package private) ProgressListener
pl
-
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) 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)
-
-
-
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
-
-