nu.validator.htmlparser.impl
Class BomSniffer

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

public final class BomSniffer
extends Object

The BOM sniffing part of the HTML5 encoding sniffing algorithm.

Version:
$Id: BomSniffer.java 150 2007-08-16 19:21:25Z hsivonen $
Author:
hsivonen

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

CharsetDecoder sniff()
               throws IOException
Throws:
IOException