org.mozilla.intl.chardet
Class nsDetector

java.lang.Object
  extended by org.mozilla.intl.chardet.nsPSMDetector
      extended by 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
nsDetector()
           
nsDetector(int langFlag)
           
 
Method Summary
 boolean DoIt(byte[] aBuf, int aLen, boolean oDontFeedMe)
           
 void Done()
           
 void Init(nsICharsetDetectionObserver aObserver)
           
 boolean isAscii(byte[] aBuf, int aLen)
           
 void Report(String charset)
           
 
Methods inherited from class org.mozilla.intl.chardet.nsPSMDetector
DataEnd, getProbableCharsets, HandleData, initVerifiers, Reset, Sample, Sample
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

nsDetector

public nsDetector()

nsDetector

public nsDetector(int langFlag)
Method Detail

Init

public void Init(nsICharsetDetectionObserver aObserver)
Specified by:
Init in interface nsICharsetDetector

DoIt

public boolean DoIt(byte[] aBuf,
                    int aLen,
                    boolean oDontFeedMe)
Specified by:
DoIt in interface nsICharsetDetector

Done

public void Done()
Specified by:
Done in interface nsICharsetDetector

Report

public void Report(String charset)
Specified by:
Report in class nsPSMDetector

isAscii

public boolean isAscii(byte[] aBuf,
                       int aLen)


Copyright © 2012. All Rights Reserved.