Class FailingEXTDTAInputStream

java.lang.Object
java.io.InputStream
org.apache.derby.impl.drda.FailingEXTDTAInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

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

    • extdtaStatus

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

    • FailingEXTDTAInputStream

      public FailingEXTDTAInputStream(byte extdtaStatus)
  • Method Details

    • read

      public int read() throws IOException
      Throws an exception.
      Specified by:
      read in class InputStream
      Returns:
      n/a
      Throws:
      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.