Class UpdateSensitiveClobLocatorInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    class UpdateSensitiveClobLocatorInputStream
    extends UpdateSensitiveLOBLocatorInputStream
    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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.io.InputStream reCreateStream()
      Re-creates the underlying Locator stream with the current position and the length values if specified.
      • Methods inherited from class java.io.InputStream

        available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 the Clob value from the server
        clob - Clob object that contains locator for the Clob value on the server.
        Throws:
        SqlException - If any exception occurs during stream creation.