Class UpdateSensitiveBlobLocatorInputStream

java.lang.Object
java.io.InputStream
org.apache.derby.client.am.UpdateSensitiveLOBLocatorInputStream
org.apache.derby.client.am.UpdateSensitiveBlobLocatorInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

class UpdateSensitiveBlobLocatorInputStream extends UpdateSensitiveLOBLocatorInputStream
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 Details

  • Constructor Details

    • UpdateSensitiveBlobLocatorInputStream

      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 - connection to be used to read the Blob value from the server
      blob - Blob object that contains locator for the Blob value on the server.
      Throws:
      SqlException - If any exception occurs during stream creation.
    • UpdateSensitiveBlobLocatorInputStream

      UpdateSensitiveBlobLocatorInputStream(ClientConnection con, ClientBlob blob, long position, long length) throws SqlException
      Creates an instance of the BlobLocatorInputStream.
      Parameters:
      con - connection to be used to read the Blob value from the server
      blob - Blob object that contains locator for the Blob value on the server.
      position - the position in the Blob of the first byte to read.
      length - the maximum number of bytes to read from the Blob.
      Throws:
      SqlException - If any exception occurs during stream creation.
  • Method Details