Package org.apache.derby.impl.drda
Class FailingEXTDTAInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.derby.impl.drda.FailingEXTDTAInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public final class FailingEXTDTAInputStream extends java.io.InputStreamA stream class that throws an exception on the first read request.
-
-
Field Summary
Fields Modifier and Type Field Description private byteextdtaStatusThe status byte used to determine which exception to throw.
-
Constructor Summary
Constructors Constructor Description FailingEXTDTAInputStream(byte extdtaStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()Throws an exception.
-
-
-
Method Detail
-
read
public int read() throws java.io.IOExceptionThrows an exception.- Specified by:
readin classjava.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.
-
-