Class SniffedXmlInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class SniffedXmlInputStream
    extends java.io.BufferedInputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int MAX_SNIFFED_BYTES  
    • Constructor Summary

      Constructors 
      Constructor Description
      SniffedXmlInputStream​(java.io.InputStream stream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        equals, 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()