public class nsDetector extends nsPSMDetector implements nsICharsetDetector
ALL, CHINESE, JAPANESE, KOREAN, MAX_VERIFIERS, NO_OF_LANGUAGES, SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE
Constructor and Description |
---|
nsDetector() |
nsDetector(int langFlag) |
Modifier and Type | Method and Description |
---|---|
boolean |
DoIt(byte[] aBuf,
int aLen,
boolean oDontFeedMe) |
void |
Done() |
void |
Init(nsICharsetDetectionObserver aObserver) |
boolean |
isAscii(byte[] aBuf,
int aLen) |
void |
Report(java.lang.String charset) |
DataEnd, getProbableCharsets, HandleData, Reset, Sample, Sample
public void Init(nsICharsetDetectionObserver aObserver)
Init
in interface nsICharsetDetector
public boolean DoIt(byte[] aBuf, int aLen, boolean oDontFeedMe)
DoIt
in interface nsICharsetDetector
public void Done()
Done
in interface nsICharsetDetector
public void Report(java.lang.String charset)
Report
in class nsPSMDetector
public boolean isAscii(byte[] aBuf, int aLen)