com.knowgate.dfs.chardet
Class CharacterSetDetector

java.lang.Object
  extended by com.knowgate.dfs.chardet.CharacterSetDetector
All Implemented Interfaces:
nsICharsetDetectionObserver

public class CharacterSetDetector
extends java.lang.Object
implements nsICharsetDetectionObserver


Constructor Summary
CharacterSetDetector()
           
 
Method Summary
 java.lang.String detect(java.io.File oFile, java.lang.String sDefaultCharset)
           
 java.lang.String detect(java.io.InputStream oInStrm, java.lang.String sDefaultCharset)
           
 java.lang.String detect(java.lang.String sFile, java.lang.String sDefaultCharset)
           
 void Notify(java.lang.String sCharSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterSetDetector

public CharacterSetDetector()
Method Detail

Notify

public void Notify(java.lang.String sCharSet)
Specified by:
Notify in interface nsICharsetDetectionObserver

detect

public java.lang.String detect(java.io.InputStream oInStrm,
                               java.lang.String sDefaultCharset)
                        throws java.io.IOException
Throws:
java.io.IOException

detect

public java.lang.String detect(java.io.File oFile,
                               java.lang.String sDefaultCharset)
                        throws java.io.IOException
Throws:
java.io.IOException

detect

public java.lang.String detect(java.lang.String sFile,
                               java.lang.String sDefaultCharset)
                        throws java.io.IOException
Throws:
java.io.IOException