Package org.mozilla.intl.chardet
Class nsDetector
- java.lang.Object
-
- org.mozilla.intl.chardet.nsPSMDetector
-
- org.mozilla.intl.chardet.nsDetector
-
- All Implemented Interfaces:
nsICharsetDetector
public class nsDetector extends nsPSMDetector implements nsICharsetDetector
-
-
Field Summary
-
Fields inherited from class org.mozilla.intl.chardet.nsPSMDetector
ALL, CHINESE, JAPANESE, KOREAN, MAX_VERIFIERS, NO_OF_LANGUAGES, SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE
-
-
Constructor Summary
Constructors Constructor Description nsDetector()nsDetector(int langFlag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanDoIt(byte[] aBuf, int aLen, boolean oDontFeedMe)voidDone()voidInit(nsICharsetDetectionObserver aObserver)booleanisAscii(byte[] aBuf, int aLen)voidReport(java.lang.String charset)-
Methods inherited from class org.mozilla.intl.chardet.nsPSMDetector
DataEnd, getProbableCharsets, HandleData, initVerifiers, Reset, Sample, Sample
-
-
-
-
Method Detail
-
Init
public void Init(nsICharsetDetectionObserver aObserver)
- Specified by:
Initin interfacensICharsetDetector
-
DoIt
public boolean DoIt(byte[] aBuf, int aLen, boolean oDontFeedMe)- Specified by:
DoItin interfacensICharsetDetector
-
Done
public void Done()
- Specified by:
Donein interfacensICharsetDetector
-
Report
public void Report(java.lang.String charset)
- Specified by:
Reportin classnsPSMDetector
-
isAscii
public boolean isAscii(byte[] aBuf, int aLen)
-
-