public class nsDetector extends nsPSMDetector implements nsICharsetDetector
Modifier and Type | Field and Description |
---|---|
(package private) nsICharsetDetectionObserver |
mObserver |
ALL, CHINESE, JAPANESE, KOREAN, MAX_VERIFIERS, mClassItems, mClassRunSampler, mDone, mItemIdx, mItems, mRunSampler, mSampler, mState, mStatisticsData, mVerifier, 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, initVerifiers, Reset, Sample, Sample
nsICharsetDetectionObserver mObserver
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)