Package com.thaiopensource.xml.em
Class EncodingDetectInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.thaiopensource.xml.em.EncodingDetectInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class EncodingDetectInputStream extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description EncodingDetectInputStream(java.io.InputStream in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdetectEncoding()static voidmain(java.lang.String[] args)intread()intread(byte[] b, int off, int len)
-
-
-
Method Detail
-
detectEncoding
public java.lang.String detectEncoding() throws java.io.IOException- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-