public final class EncodingDetector
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
detectEncoding(java.io.File inFile)
Detect the encoding of the supplied file.
|
static java.lang.String |
detectEncoding(java.io.InputStream stream)
Detect the encoding of the supplied file.
|
static java.lang.String |
detectEncodingDefault(java.io.File inFile,
java.lang.String defaultEncoding)
Detect the encoding of the supplied file.
|
public static java.lang.String detectEncoding(java.io.File inFile) throws java.io.IOException
detectEncoding(java.io.InputStream)
.java.io.IOException
public static java.lang.String detectEncoding(java.io.InputStream stream) throws java.io.IOException
public static java.lang.String detectEncodingDefault(java.io.File inFile, java.lang.String defaultEncoding)