org.exoplatform.services.chars.chardet
Class Detector

java.lang.Object
  extended by org.exoplatform.services.chars.chardet.PSMDetector
      extended by org.exoplatform.services.chars.chardet.Detector
All Implemented Interfaces:
ICharsetDetector

public class Detector
extends PSMDetector
implements ICharsetDetector


Field Summary
 
Fields inherited from class org.exoplatform.services.chars.chardet.PSMDetector
ALL, CHINESE, JAPANESE, KOREAN, MAX_VERIFIERS, NO_OF_LANGUAGES, SIMPLIFIED_CHINESE, TRADITIONAL_CHINESE
 
Constructor Summary
Detector()
           
Detector(int langFlag)
           
 
Method Summary
 boolean doIt(byte[] aBuf, int aLen, boolean oDontFeedMe)
           
 void done()
           
 void init(ICharsetDetectionObserver aObserver)
           
 boolean isAscii(byte[] aBuf, int aLen)
           
 void report(java.lang.String charset)
           
 
Methods inherited from class org.exoplatform.services.chars.chardet.PSMDetector
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

Detector

public Detector()

Detector

public Detector(int langFlag)
Method Detail

init

public void init(ICharsetDetectionObserver aObserver)
Specified by:
init in interface ICharsetDetector

doIt

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

done

public void done()
Specified by:
done in interface ICharsetDetector

report

public void report(java.lang.String charset)
Specified by:
report in class PSMDetector

isAscii

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


Copyright © 2011 eXo Platform SAS. All Rights Reserved.