org.apache.xmlbeans.impl.common
Class SniffedXmlInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.BufferedInputStream
              extended by org.apache.xmlbeans.impl.common.SniffedXmlInputStream
All Implemented Interfaces:
java.io.Closeable

public class SniffedXmlInputStream
extends java.io.BufferedInputStream


Field Summary
static int MAX_SNIFFED_BYTES
           
 
Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
SniffedXmlInputStream(java.io.InputStream stream)
           
 
Method Summary
 java.lang.String getXmlEncoding()
           
 
Methods inherited from class java.io.BufferedInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SNIFFED_BYTES

public static int MAX_SNIFFED_BYTES
Constructor Detail

SniffedXmlInputStream

public SniffedXmlInputStream(java.io.InputStream stream)
                      throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getXmlEncoding

public java.lang.String getXmlEncoding()