Package org.apache.abdera.i18n.text.io
Class CharsetSniffingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.abdera.i18n.text.io.CharsetSniffingInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class CharsetSniffingInputStream extends java.io.FilterInputStream
Will attempt to autodetect the character encoding from the stream By default, this will preserve the BOM if it exists
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CharsetSniffingInputStream.Encoding
-
Constructor Summary
Constructors Constructor Description CharsetSniffingInputStream(java.io.InputStream in)
CharsetSniffingInputStream(java.io.InputStream in, boolean preserveBom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEncoding()
boolean
isBomSet()
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
-
-