Package org.apache.derby.impl.drda
Class FailingEXTDTAInputStream
java.lang.Object
java.io.InputStream
org.apache.derby.impl.drda.FailingEXTDTAInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
A stream class that throws an exception on the first read request.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte
The status byte used to determine which exception to throw. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
extdtaStatus
private final byte extdtaStatusThe status byte used to determine which exception to throw.
-
-
Constructor Details
-
FailingEXTDTAInputStream
public FailingEXTDTAInputStream(byte extdtaStatus)
-
-
Method Details
-
read
Throws an exception.- Specified by:
read
in classInputStream
- 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.
-