nu.validator.htmlparser.io
Class BomSniffer

java.lang.Object
  extended by nu.validator.htmlparser.io.BomSniffer

public final class BomSniffer
extends Object

The BOM sniffing part of the HTML5 encoding sniffing algorithm.

Version:
$Id: BomSniffer.java 491 2009-01-22 14:07:26Z hsivonen $
Author:
hsivonen

Field Summary
private  ByteReadable source
           
 
Constructor Summary
BomSniffer(ByteReadable source)
           
 
Method Summary
(package private)  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 ByteReadable source
Constructor Detail

BomSniffer

public BomSniffer(ByteReadable source)
Parameters:
source -
Method Detail

sniff

Encoding sniff()
         throws IOException
Throws:
IOException