Top Description Fields Constructors Methods
org.apache.derby.client.am

pack-priv Class UpdateSensitiveBlobLocatorInputStream

extends UpdateSensitiveLOBLocatorInputStream
Class Inheritance
Imports
java.io.InputStream

This class extends from the UpdateSensitiveLOBLocatorInputStream and creates and returns an implementation of the Blob specific locator InputStream. It also over-rides the reCreateStream method which re-creates the underlying Blob locator stream whenever a update happens on the Blob object associated with this stream.

Field Summary

Modifier and TypeField and Description
private ClientBlob
Inherited from org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream:
concurrentPoslength

Constructor Summary

AccessConstructor and Description
pack-priv
UpdateSensitiveBlobLocatorInputStream(ClientConnection
connection to be used to read the Blob value from the server
con
,
ClientBlob
Blob object that contains locator for the Blob value on the server.
blob
)

Creates an instance of the BlobLocatorInputStream and and calls the super class constructors with appropriate initializers.

pack-priv
UpdateSensitiveBlobLocatorInputStream(ClientConnection
connection to be used to read the Blob value from the server
con
,
ClientBlob
Blob object that contains locator for the Blob value on the server.
blob
,
long
the position in the Blob of the first byte to read.
position
,
long
the maximum number of bytes to read from the Blob.
length
)

Creates an instance of the BlobLocatorInputStream.

Method Summary

Modifier and TypeMethod and Description
protected InputStream
reCreateStream()

Implements abstract org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream.reCreateStream.

Re-creates the underlying Locator stream with the current position and the length values if specified.
Inherited from org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream:
closereadread

Field Detail

blobback to summary
private ClientBlob blob

Constructor Detail

UpdateSensitiveBlobLocatorInputStreamback to summary
pack-priv UpdateSensitiveBlobLocatorInputStream(ClientConnection con, ClientBlob blob) throws SqlException

Creates an instance of the BlobLocatorInputStream and and calls the super class constructors with appropriate initializers.

Parameters
con:ClientConnection

connection to be used to read the Blob value from the server

blob:ClientBlob

Blob object that contains locator for the Blob value on the server.

Exceptions
SqlException:
If any exception occurs during stream creation.
UpdateSensitiveBlobLocatorInputStreamback to summary
pack-priv UpdateSensitiveBlobLocatorInputStream(ClientConnection con, ClientBlob blob, long position, long length) throws SqlException

Creates an instance of the BlobLocatorInputStream.

Parameters
con:ClientConnection

connection to be used to read the Blob value from the server

blob:ClientBlob

Blob object that contains locator for the Blob value on the server.

position:long

the position in the Blob of the first byte to read.

length:long

the maximum number of bytes to read from the Blob.

Exceptions
SqlException:
If any exception occurs during stream creation.

Method Detail

reCreateStreamback to summary
protected InputStream reCreateStream() throws SqlException

Implements abstract org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream.reCreateStream.

Re-creates the underlying Locator stream with the current position and the length values if specified.

Exceptions
SqlException:
If any exception occurs while re-creating the underlying streams.