Class V10OutputBlob

All Implemented Interfaces:
AutoCloseable, FbBlob, DatabaseListener, ExceptionListenable, TransactionListener, FbWireBlob

public class V10OutputBlob extends AbstractFbWireOutputBlob implements FbWireBlob, DatabaseListener
Since:
3.0
Author:
Mark Rotteveel
  • Constructor Details

  • Method Details

    • open

      public void open() throws SQLException
      Description copied from interface: FbBlob
      Opens an existing input blob, or creates an output blob.
      Specified by:
      open in interface FbBlob
      Throws:
      SQLException - If the blob is already open, this is a (closed) output blob and it already has a blobId, the transaction is not active, or a database connection error occurred
    • put

      public void put(byte[] b, int off, int len) throws SQLException
      Description copied from interface: FbBlob
      Writes content of b starting at off for length bytes to the blob.

      Implementations must write all bytes to the blob, using multiple round-trips if necessary.

      If the implementation cannot perform writes without additional allocation, it should use at most DatabaseConnectionProperties.getBlobBufferSize() as an internal buffer. If the implementation can perform writes without additional allocation, it is recommended it performs reads using (at most) FbBlob.getMaximumSegmentSize().

      Specified by:
      put in interface FbBlob
      Parameters:
      b - source byte array
      off - offset to start
      len - number of bytes
      Throws:
      SQLException - for database access errors, if off < 0, len < 0, or if off + len > b.length
    • consumePutSegmentResponses

      protected void consumePutSegmentResponses(int requestCount) throws SQLException
      Throws:
      SQLException