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 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)
-
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:
Init
in interfacensICharsetDetector
-
DoIt
public boolean DoIt(byte[] aBuf, int aLen, boolean oDontFeedMe)
- Specified by:
DoIt
in interfacensICharsetDetector
-
Done
public void Done()
- Specified by:
Done
in interfacensICharsetDetector
-
Report
public void Report(java.lang.String charset)
- Specified by:
Report
in classnsPSMDetector
-
isAscii
public boolean isAscii(byte[] aBuf, int aLen)
-
-