nu.validator.htmlparser.extra
Class ChardetSniffer

java.lang.Object
  extended by nu.validator.htmlparser.extra.ChardetSniffer
All Implemented Interfaces:
org.mozilla.intl.chardet.nsICharsetDetectionObserver

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


Constructor Summary
ChardetSniffer(byte[] source, int length)
           
 
Method Summary
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
 

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