public abstract class AbstractFbWireInputBlob extends AbstractFbWireBlob
FbBlob.SeekMode
exceptionListenerDispatcher
NO_BLOB_ID
Modifier | Constructor and Description |
---|---|
protected |
AbstractFbWireInputBlob(FbWireDatabase database,
FbWireTransaction transaction,
BlobParameterBuffer blobParameterBuffer,
long blobId) |
Modifier and Type | Method and Description |
---|---|
long |
getBlobId() |
boolean |
isOutput() |
void |
putSegment(byte[] segment)
Writes a segment of blob data.
|
cancelImpl, closeImpl, getBlobInfo, getDatabase, getHandle, releaseBlob, releaseResources, setHandle
addExceptionListener, cancel, checkBlobClosed, checkBlobOpen, checkDatabaseAttached, checkTransactionActive, clearDatabase, clearTransaction, close, createBlobLengthProcessor, detached, detaching, getBlobInfo, getBlobParameterBuffer, getMaximumSegmentSize, getSynchronizationObject, getTransaction, isEndingTransaction, isEof, isOpen, length, removeExceptionListener, resetEof, setEof, setOpen, transactionStateChanged, warningReceived
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, close, getBlobInfo, getMaximumSegmentSize, getSegment, getSynchronizationObject, isEof, isOpen, length, open, seek
addExceptionListener, removeExceptionListener
protected AbstractFbWireInputBlob(FbWireDatabase database, FbWireTransaction transaction, BlobParameterBuffer blobParameterBuffer, long blobId)
public final long getBlobId()
public final boolean isOutput()
true
if this is an output blob (write only), false
if this is an
input blob (read only)public final void putSegment(byte[] segment) throws java.sql.SQLException
FbBlob
Implementation must handle segment length exceeding FbBlob.getMaximumSegmentSize()
by batching. TODO: reconsider and let caller handle that?
Passing a section that is length 0 will throw an SQLException
.
segment
- Segment to writejava.sql.SQLException
- If this is an input blob, the blob is closed, the transaction is not active, the segment is length 0 or
longer than the maximum segment size, or a database connection error occurred.Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.