| Modifier and Type | Field and Description |
|---|---|
| private ByteArrayInputStream | currentBuffer
Current data buffer |
| private final DDMReader | reader
DDMReader. |
| Access | Constructor and Description |
|---|---|
| pack-priv | LayerBStreamedEXTDTAReaderInputStream(final DDMReader
The reader to get data from reader, boolean whether or not to read the trailing Derby-specific
EXTDTA stream status byte readStatusByte)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| public final int | Returns: the number of bytes that can be read from this input stream without blocking.Overrides java. |
| protected void | onClientSideStreamingError()
Implements abstract org. |
| public final int | Returns: the next byte of data, or-1 if the end of the
stream is reached.Implements abstract java. |
| public final int | Returns: the total number of bytes read into the buffer, or-1 if there is no more data because the end of
the stream has been reached.the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from the input stream into
an array of bytes.
|
| currentBuffer | back to summary |
|---|---|
| private ByteArrayInputStream currentBuffer Current data buffer | |
| reader | back to summary |
|---|---|
| private final DDMReader reader DDMReader. Used to get more data. | |
| LayerBStreamedEXTDTAReaderInputStream | back to summary |
|---|---|
| pack-priv LayerBStreamedEXTDTAReaderInputStream(final DDMReader reader, boolean readStatusByte) throws DRDAProtocolException Constructor
| |
| available | back to summary |
|---|---|
| public final int available() Overrides java. Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. This subclass implements this method by calling available on the current buffer, which is a ByteInputStreamReader.
| |
| onClientSideStreamingError | back to summary |
|---|---|
| protected void onClientSideStreamingError() Implements abstract org. Doc from org. Performs necessary clean up when an error is signalled by the client. | |
| read | back to summary |
|---|---|
| public final int read() throws IOException Implements abstract java. Reads the next byte of data from the input stream. This subclass of InputStream implements this method by reading the next byte from the current buffer. If there is more data, it will be requested a new buffer from the DDMReader.
| |
| read | back to summary |
|---|---|
| public final int read(final byte[] b, int off, int len) throws IOException Overrides java. Reads up to
| |