| java.lang.Object java.io.InputStream org.apache.derby.impl.drda.EXTDTAReaderInputStream
EXTDTAReaderInputStream | final class EXTDTAReaderInputStream extends InputStream (Code) | | Implementation of InputStream which get EXTDTA from the DDMReader.
This class can be used to stream LOBs from Network client to the
Network server.
|
Method Summary | |
final public int | available() 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. | final long | getLength() Return the length if this stream. | final public int | read() 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. | final public int | read(byte[] b, int off, int len) Reads up to len bytes of data from the input stream into
an array of bytes. |
available | final public int available()(Code) | | 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.
the number of bytes that can be read from this input streamwithout blocking. |
getLength | final long getLength()(Code) | | Return the length if this stream. The length includes data which has
been read.
length of this stream. |
read | final public int read() throws IOException(Code) | | 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.
the next byte of data, or -1 if the end of thestream is reached. exception: IOException - if an I/O error occurs. See Also: java.io.InputStream.read |
read | final public int read(byte[] b, int off, int len) throws IOException(Code) | | Reads up to len bytes of data from the input stream into
an array of bytes. An attempt is made to read as many as
len bytes, but a smaller number may be read, possibly
zero. The number of bytes actually read is returned as an integer.
This subclass implements this method by calling this method on the
current buffer, which is an instance of ByteArrayInputStream. If the
current buffer does not have any data, it will be requested a new
buffer from the DDMReader.
Parameters: b - the buffer into which the data is read. Parameters: off - the start offset in array b at which the data is written. Parameters: len - the maximum number of bytes to read. the total number of bytes read into the buffer, or-1 if there is no more data because the end ofthe stream has been reached. exception: IOException - if an I/O error occurs. exception: NullPointerException - if b is null . See Also: java.io.InputStream.read(byte[]intint) |
|
|