Package org.apache.derby.client.am
Class UpdateSensitiveClobLocatorInputStream
java.lang.Object
java.io.InputStream
org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream
org.apache.derby.client.am.UpdateSensitiveClobLocatorInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
This class extends from the UpdateSensitiveLOBLocatorInputStream
and creates and returns an implementation of the Clob specific
locator InputStream. It also over-rides the reCreateStream method
which re-creates the underlying Clob locator stream whenever a
update happens on the Clob object associated with this stream.
-
Field Summary
FieldsFields inherited from class org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream
con, currentPos, length
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of the ClobLocatorInputStream wrapped in a BufferedInputStream and and calls the super class constructor with appropriate initializers. -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStream
Re-creates the underlying Locator stream with the current position and the length values if specified.Methods inherited from class org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream
close, read, read
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
clob
-
-
Constructor Details
-
UpdateSensitiveClobLocatorInputStream
UpdateSensitiveClobLocatorInputStream(ClientConnection con, ClientClob clob) throws SqlException Creates an instance of the ClobLocatorInputStream wrapped in a BufferedInputStream and and calls the super class constructor with appropriate initializers.- Parameters:
con
- connection to be used to read theClob
value from the serverclob
-Clob
object that contains locator for theClob
value on the server.- Throws:
SqlException
- If any exception occurs during stream creation.
-
-
Method Details
-
reCreateStream
Re-creates the underlying Locator stream with the current position and the length values if specified.- Specified by:
reCreateStream
in classUpdateSensitiveLOBLocatorInputStream
- Throws:
SqlException
-