Package nu.validator.htmlparser.extra
Class IcuDetectorSniffer
- java.lang.Object
-
- java.io.InputStream
-
- nu.validator.htmlparser.extra.IcuDetectorSniffer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class IcuDetectorSniffer extends java.io.InputStream
-
-
Field Summary
Fields Modifier and Type Field Description private ByteReadable
source
-
Constructor Summary
Constructors Constructor Description IcuDetectorSniffer(ByteReadable source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
int
read()
Encoding
sniff()
-
-
-
Field Detail
-
source
private final ByteReadable source
-
-
Constructor Detail
-
IcuDetectorSniffer
public IcuDetectorSniffer(ByteReadable source)
- Parameters:
source
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
sniff
public Encoding sniff() throws java.io.IOException
- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args)
-
-