org.apache.abdera.parser.stax.util
Class FOMSniffingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.abdera.i18n.text.io.CharsetSniffingInputStream
org.apache.abdera.parser.stax.util.FOMSniffingInputStream
- All Implemented Interfaces:
- Closeable
public class FOMSniffingInputStream
- extends CharsetSniffingInputStream
Will attempt to autodetect the character encoding from the stream This will preserve the BOM if it exists.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FOMSniffingInputStream
public FOMSniffingInputStream(InputStream in)
detectEncoding
protected String detectEncoding()
throws IOException
- Overrides:
detectEncoding
in class CharsetSniffingInputStream
- Throws:
IOException
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.