Class ChardetSniffer

  • All Implemented Interfaces:
    org.mozilla.intl.chardet.nsICharsetDetectionObserver

    public class ChardetSniffer
    extends java.lang.Object
    implements org.mozilla.intl.chardet.nsICharsetDetectionObserver
    • Constructor Summary

      Constructors 
      Constructor Description
      ChardetSniffer​(byte[] source, int length)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      void Notify​(java.lang.String charsetName)  
      Encoding sniff()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • source

        private final byte[] source
      • length

        private final int length
      • returnValue

        private Encoding returnValue
    • Constructor Detail

      • ChardetSniffer

        public ChardetSniffer​(byte[] source,
                              int length)
        Parameters:
        source -
    • Method Detail

      • sniff

        public Encoding sniff()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] args)
      • Notify

        public void Notify​(java.lang.String charsetName)
        Specified by:
        Notify in interface org.mozilla.intl.chardet.nsICharsetDetectionObserver