org.apache.abdera.parser.stax.util
Class FOMSniffingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.apache.abdera.i18n.text.io.CharsetSniffingInputStream
              extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.abdera.i18n.text.io.CharsetSniffingInputStream
CharsetSniffingInputStream.Encoding
 
Field Summary
 
Fields inherited from class org.apache.abdera.i18n.text.io.CharsetSniffingInputStream
bomset, encoding, preserve
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
FOMSniffingInputStream(InputStream in)
           
 
Method Summary
protected  String detectEncoding()
           
 
Methods inherited from class org.apache.abdera.i18n.text.io.CharsetSniffingInputStream
getEncoding, getInternal, isBomSet
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FOMSniffingInputStream

public FOMSniffingInputStream(InputStream in)
Method Detail

detectEncoding

protected String detectEncoding()
                         throws IOException
Overrides:
detectEncoding in class CharsetSniffingInputStream
Throws:
IOException


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.