| Modifier and Type | Field and Description |
|---|---|
| protected ClientConnection | |
| protected long | |
| private BufferedInputStream | |
| protected long | |
| private Lob | |
| private long |
| Access | Constructor and Description |
|---|---|
| protected | UpdateSensitiveLOBLocatorInputStream(ClientConnection
connection to be used to read the
con, Lob Lob value from the serverLob object which could be a
Blob or a Clob.an is)InputStream that contains the
appropriate locator stream instance.Initializes the InputStream, updateCount, currentPos and the connection to the appropriate values. |
| protected | UpdateSensitiveLOBLocatorInputStream(ClientConnection
connection to be used to read the
con, Lob Lob value from the serverLob object which could be a
Blob or a Clob.an is, long InputStream that contains the
appropriate locator stream instance.the position from which the first read begins. pos, long the length in bytes of the partial value to be
retrieved. len)Initializes the InputStream, updateCount, currentPos, length and the connection to the appropriate values. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| private void | identifyAndReplaceObseleteStream()
Verifies whether the current updateCount matches the updateCount of the LOB object and if it does not it recreates the stream. |
| public int | read()
Implements abstract java. |
| public int | read(byte[]
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.
|
| protected abstract InputStream | reCreateStream()
Abstract method that will be implemented by the underlying streams specific to Clob and Blob. |
| con | back to summary |
|---|---|
| protected ClientConnection con | |
| currentPos | back to summary |
|---|---|
| protected long currentPos | |
| is | back to summary |
|---|---|
| private BufferedInputStream is | |
| length | back to summary |
|---|---|
| protected long length | |
| lob | back to summary |
|---|---|
| private Lob lob | |
| updateCount | back to summary |
|---|---|
| private long updateCount | |
| UpdateSensitiveLOBLocatorInputStream | back to summary |
|---|---|
| protected UpdateSensitiveLOBLocatorInputStream(ClientConnection con, Lob lob, InputStream is) throws SqlException Initializes the InputStream, updateCount, currentPos and the connection to the appropriate values.
| |
| UpdateSensitiveLOBLocatorInputStream | back to summary |
|---|---|
| protected UpdateSensitiveLOBLocatorInputStream(ClientConnection con, Lob lob, InputStream is, long pos, long len) throws SqlException Initializes the InputStream, updateCount, currentPos, length and the connection to the appropriate values.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| identifyAndReplaceObseleteStream | back to summary |
|---|---|
| private void identifyAndReplaceObseleteStream() throws IOException Verifies whether the current updateCount matches the updateCount of the LOB object and if it does not it recreates the stream.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| reCreateStream | back to summary |
|---|---|
| protected abstract InputStream reCreateStream() throws SqlException Abstract method that will be implemented by the underlying streams specific to Clob and Blob. | |