java.lang.Objectjavax.sql.rowset.serial.SerialBlob
All Implemented Interfaces:
Cloneable, Blob, Serializable
BLOB value.
The SerialBlob class provides a constructor for creating
an instance from a Blob object. Note that the
Blob
object should have brought the SQL BLOB value's data over
to the client before a SerialBlob object
is constructed from it. The data of an SQL BLOB value can
be materialized on the client as an array of bytes (using the method
Blob.getBytes) or as a stream of uninterpreted bytes
(using the method Blob.getBinaryStream).
SerialBlob methods make it possible to make a copy of a
SerialBlob object as an array of bytes or as a stream.
They also make it possible to locate a given pattern of bytes or a
Blob object within a SerialBlob object
and to update or truncate a Blob object.
Jonathan - Bruce| Field Summary | ||
|---|---|---|
| static final long | serialVersionUID | The identifier that assists in the serialization of this SerialBlob
object. |
| Constructor: |
|---|
SerialBlob object that is a serialized version of
the given byte array.
The new
|
SerialBlob object that is a serialized
version of the given Blob object.
The new
|
| Method from javax.sql.rowset.serial.SerialBlob Summary: |
|---|
| free, getBinaryStream, getBinaryStream, getBytes, length, position, position, setBinaryStream, setBytes, setBytes, truncate |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.sql.rowset.serial.SerialBlob Detail: |
|---|
Blob object and releases the resources that it holds.
Blob object. The object is invalid once the free
method is called. If free is called multiple times, the subsequent
calls to free are treated as a no-op. |
SerialBlob object as an input stream.
Unlike the related method, setBinaryStream,
a stream is produced regardless of whether the SerialBlob
was created with a Blob object or a byte array. |
InputStream object that contains a partial Blob value,
starting with the byte specified by pos, which is length bytes in length. |
SerialBlob object to
another array of bytes.
Note that if the given number of bytes to be copied is larger than
the length of this |
SerialBlob
object's array of bytes. |
SerialBlob object where
the given pattern of bytes begins, starting the search at the
specified position. |
SerialBlob object where
the given Blob object begins, starting the search at the
specified position. |
BLOB
value that this Blob object represents. The stream begins
at position pos. This method forwards the
setBinaryStream() call to the underlying Blob in
the event that this SerialBlob object is instantiated with a
Blob. If this SerialBlob is instantiated with
a byte array, a SerialException is thrown. |
BLOB value that
this Blob object represents, starting at position
pos, and returns the number of bytes written. |
byte array to the
BLOB value that this Blob object represents
and returns the number of bytes written.
Writing starts at position pos in the BLOB
value; len bytes from the given byte array are written. |
BLOB value that this Blob
object represents to be len bytes in length. |