Class SourceStreamIOException

  • All Implemented Interfaces:
    java.io.Serializable

    public class SourceStreamIOException
    extends java.io.IOException
    A marker exception class to distinguish between "IOException when reading the data" and "IOException when writing the data" when transferring data from one stream to another.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int bytesRemaining
      The number of bytes remaining to transfer to the destination stream.
    • Constructor Summary

      Constructors 
      Constructor Description
      SourceStreamIOException​(int bytesRemaining, java.io.IOException cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBytesRemaining()  
      java.io.IOException getCause()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, 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

      • bytesRemaining

        private final int bytesRemaining
        The number of bytes remaining to transfer to the destination stream.
    • Constructor Detail

      • SourceStreamIOException

        public SourceStreamIOException​(int bytesRemaining,
                                       java.io.IOException cause)
    • Method Detail

      • getBytesRemaining

        public int getBytesRemaining()
      • getCause

        public java.io.IOException getCause()
        Overrides:
        getCause in class java.lang.Throwable