Packages

 

com.aspose.imaging.coreexceptions

Class StreamReadException

  • All Implemented Interfaces:
    Serializable


    public class StreamReadException
    extends FrameworkException

    The stream reading exception. Caused when stream reading failed due to incorrect offset and bytes count request.

    See Also:
    Serialized Form
    • Constructor Detail

      • StreamReadException

        public StreamReadException(String message)

        Initializes a new instance of the StreamReadException class.

        Parameters:
        message - The message.
      • StreamReadException

        public StreamReadException(String message,
                                   Throwable innerException)

        Initializes a new instance of the StreamReadException class.

        Parameters:
        message - The message.
        innerException - The inner exception.
      • StreamReadException

        public StreamReadException(String message,
                                   Throwable innerException,
                                   int expectedReadCount,
                                   int actualReadCount)

        Initializes a new instance of the StreamReadException class.

        Parameters:
        message - The message.
        innerException - The inner exception.
        expectedReadCount - The expected read count.
        actualReadCount - The actual read count.
      • StreamReadException

        public StreamReadException(String message,
                                   int expectedReadCount,
                                   int actualReadCount)

        Initializes a new instance of the StreamReadException class.

        Parameters:
        message - The message.
        expectedReadCount - The expected read count.
        actualReadCount - The actual read count.
    • Method Detail

      • getExpectedReadCount

        public int getExpectedReadCount()

        Gets the expected read bytes count.

        Returns:
        The expected read bytes count.
      • getActualReadCount

        public int getActualReadCount()

        Gets the actual read bytes count.

        Returns:
        The actual read bytes count.