Top Description Fields Constructors Methods
org.apache.derby.impl.drda

public final Class FailingEXTDTAInputStream

extends InputStream
Class Inheritance
Imports
java.io.IOException, .InputStream

A stream class that throws an exception on the first read request.

Field Summary

Modifier and TypeField and Description
private final byte
extdtaStatus

The status byte used to determine which exception to throw.

Constructor Summary

AccessConstructor and Description
public
FailingEXTDTAInputStream(byte extdtaStatus)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

n/a
read
()

Implements abstract java.io.InputStream.read.

Throws an exception.
Inherited from java.io.InputStream:
availableclosemarkmarkSupportednullInputStreamreadreadreadAllBytesreadNBytesreadNBytesresetskipskipNBytestransferTo

Field Detail

extdtaStatusback to summary
private final byte extdtaStatus

The status byte used to determine which exception to throw.

Constructor Detail

FailingEXTDTAInputStreamback to summary
public FailingEXTDTAInputStream(byte extdtaStatus)

Method Detail

readback to summary
public int read() throws IOException

Implements abstract java.io.InputStream.read.

Throws an exception.

Returns:int

n/a

Exceptions
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.