Class BomInput.BytesProcessedNotification

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    BomInput

    public static final class BomInput.BytesProcessedNotification
    extends java.lang.RuntimeException
    Internal notification exception used to re-wrap the original InputStream into a Reader. This is required for performance reasons as overriding InputStream.read() incurs a heavy performance penalty when the implementation is native (as in FileInputStream.read().
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String encoding  
      java.io.InputStream input  
    • Constructor Summary

      Constructors 
      Constructor Description
      BytesProcessedNotification​(java.io.InputStream input, java.lang.String encoding)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable fillInStackTrace()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • input

        public final java.io.InputStream input
      • encoding

        public final java.lang.String encoding
    • Constructor Detail

      • BytesProcessedNotification

        public BytesProcessedNotification​(java.io.InputStream input,
                                          java.lang.String encoding)
    • Method Detail

      • fillInStackTrace

        public java.lang.Throwable fillInStackTrace()
        Overrides:
        fillInStackTrace in class java.lang.Throwable