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.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.
-
Constructor Summary
Constructors Constructor Description FailingEXTDTAInputStream(byte extdtaStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
Throws an exception.
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
Throws an exception.- Specified by:
read
in 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.
-
-