public class V10InputBlob extends AbstractFbWireInputBlob implements FbWireBlob, DatabaseListener
FbBlob.SeekModeexceptionListenerDispatcherNO_BLOB_ID| Constructor and Description |
|---|
V10InputBlob(FbWireDatabase database,
FbWireTransaction transaction,
BlobParameterBuffer blobParameterBuffer,
long blobId) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getSegment(int sizeRequested)
Gets a segment of blob data.
|
void |
open()
Opens an existing input blob, or creates an output blob.
|
void |
seek(int offset,
FbBlob.SeekMode seekMode)
Performs a seek on a blob with the specified
seekMode and offset. |
getBlobId, isOutput, putSegmentcancelImpl, closeImpl, getBlobInfo, getDatabase, getHandle, releaseBlob, releaseResources, setHandleaddExceptionListener, 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, warningReceivedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, close, getBlobId, getBlobInfo, getBlobInfo, getDatabase, getHandle, getMaximumSegmentSize, getSynchronizationObject, isEof, isOpen, isOutput, length, putSegmentaddExceptionListener, removeExceptionListenerdetached, detaching, warningReceivedpublic V10InputBlob(FbWireDatabase database, FbWireTransaction transaction, BlobParameterBuffer blobParameterBuffer, long blobId)
public void open()
throws java.sql.SQLException
FbBlobpublic byte[] getSegment(int sizeRequested)
throws java.sql.SQLException
FbBlob
When sizeRequested exceeds FbBlob.getMaximumSegmentSize() it is silently reduced to the maximum
segment size.
getSegment in interface FbBlobsizeRequested - Requested segment size (> 0).java.sql.SQLException - If this is an output blob, the blob is closed, the transaction is not active, or a database connection
error occurred.public void seek(int offset,
FbBlob.SeekMode seekMode)
throws java.sql.SQLException
FbBlobseekMode and offset.
Firebird only supports seek on stream blobs.
seek in interface FbBloboffset - Offset of the seek, effect depends on value of seekModeseekMode - Value of FbBlob.SeekModejava.sql.SQLException - If the blob is closed, the transaction is not active, or a database error occurred.Copyright © 2001-2020 Jaybird (Firebird JDBC/JCA) team. All rights reserved.