Class FailingEXTDTAInputStream

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

    public final class FailingEXTDTAInputStream
    extends java.io.InputStream
    A stream class that throws an exception on the first read request.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte extdtaStatus
      The status byte used to determine which exception to throw.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int read()
      Throws an exception.
      • Methods inherited from class java.io.InputStream

        available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

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

      • extdtaStatus

        private final byte extdtaStatus
        The status byte used to determine which exception to throw.
    • Constructor Detail

      • FailingEXTDTAInputStream

        public FailingEXTDTAInputStream​(byte extdtaStatus)
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Throws an exception.
        Specified by:
        read in class java.io.InputStream
        Returns:
        n/a
        Throws:
        java.io.IOException - The exception to throw as dictated by the status byte sent by the client driver when reading user data and sending it as EXTDTA.