public class ChardetSniffer
extends java.lang.Object
implements org.mozilla.intl.chardet.nsICharsetDetectionObserver
Modifier and Type | Field and Description |
---|---|
private int |
length |
private Encoding |
returnValue |
private byte[] |
source |
Constructor and Description |
---|
ChardetSniffer(byte[] source,
int length) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
void |
Notify(java.lang.String charsetName) |
Encoding |
sniff() |
private final byte[] source
private final int length
private Encoding returnValue
public ChardetSniffer(byte[] source, int length)
source
- public Encoding sniff() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
public void Notify(java.lang.String charsetName)
Notify
in interface org.mozilla.intl.chardet.nsICharsetDetectionObserver