public class ConvertFileEncoding
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
baseDirectory |
private static java.lang.String |
encodingFrom |
private static java.lang.String |
encodingTo |
private static java.lang.String |
filePattern |
(package private) static java.lang.String |
usage |
Constructor and Description |
---|
ConvertFileEncoding() |
Modifier and Type | Method and Description |
---|---|
static void |
convertEncoding(java.lang.String from,
java.lang.String to,
java.lang.String fileIn)
Convert the encoding of the file
|
static void |
convertFilesFromBase(java.io.File baseDir)
Find all the files to process under the specified base directory - then process each one.
|
static java.lang.String |
getBaseDirectory() |
static java.lang.String |
getEncodingFrom() |
static java.lang.String |
getEncodingTo() |
static java.lang.String |
getFilePattern() |
static void |
main(java.lang.String[] args) |
private static void |
println(java.lang.String str) |
static void |
setBaseDirectory(java.lang.String baseDirectory) |
static void |
setEncodingFrom(java.lang.String encodingFrom) |
static void |
setEncodingTo(java.lang.String encodingTo) |
static void |
setFilePattern(java.lang.String filePattern) |
static final java.lang.String usage
private static java.lang.String baseDirectory
private static java.lang.String filePattern
private static java.lang.String encodingFrom
private static java.lang.String encodingTo
public static void main(java.lang.String[] args)
args
- the argspublic static void convertFilesFromBase(java.io.File baseDir) throws java.io.IOException, com.konakart.app.KKException
baseDir
- the baseDirjava.io.IOException
- an unexpected IOException exceptioncom.konakart.app.KKException
- an unexpected KKException exceptionpublic static void convertEncoding(java.lang.String from, java.lang.String to, java.lang.String fileIn) throws java.io.IOException, com.konakart.app.KKException
from
- the fromto
- the tofileIn
- the fileInjava.io.IOException
- an unexpected IOException exceptioncom.konakart.app.KKException
- an unexpected KKException exceptionprivate static void println(java.lang.String str)
public static java.lang.String getFilePattern()
public static void setFilePattern(java.lang.String filePattern)
filePattern
- the filePattern to setpublic static java.lang.String getBaseDirectory()
public static void setBaseDirectory(java.lang.String baseDirectory)
baseDirectory
- the baseDirectory to setpublic static java.lang.String getEncodingFrom()
public static void setEncodingFrom(java.lang.String encodingFrom)
encodingFrom
- the encodingFrom to setpublic static java.lang.String getEncodingTo()
public static void setEncodingTo(java.lang.String encodingTo)
encodingTo
- the encodingTo to setCopyright © 2018 DS Data Systems UK Ltd.