56 * <p> A SerialBlob is not safe for use by multiple concurrent threads. If a
57 * SerialBlob is to be used by more than one thread then access to the SerialBlob
58 * should be controlled by appropriate synchronization.
59 *
60 * @author Jonathan Bruce
61 * @since 1.5
62 */
63 public class SerialBlob implements Blob, Serializable, Cloneable {
64
65 /**
66 * A serialized array of uninterpreted bytes representing the
67 * value of this <code>SerialBlob</code> object.
68 * @serial
69 */
70 private byte[] buf;
71
72 /**
73 * The internal representation of the <code>Blob</code> object on which this
74 * <code>SerialBlob</code> object is based.
75 */
76 private Blob blob;
77
78 /**
79 * The number of bytes in this <code>SerialBlob</code> object's
80 * array of bytes.
81 * @serial
82 */
83 private long len;
84
85 /**
86 * The original number of bytes in this <code>SerialBlob</code> object's
87 * array of bytes when it was first established.
88 * @serial
89 */
90 private long origLen;
91
92 /**
93 * Constructs a <code>SerialBlob</code> object that is a serialized version of
94 * the given <code>byte</code> array.
95 * <p>
|
56 * <p> A SerialBlob is not safe for use by multiple concurrent threads. If a
57 * SerialBlob is to be used by more than one thread then access to the SerialBlob
58 * should be controlled by appropriate synchronization.
59 *
60 * @author Jonathan Bruce
61 * @since 1.5
62 */
63 public class SerialBlob implements Blob, Serializable, Cloneable {
64
65 /**
66 * A serialized array of uninterpreted bytes representing the
67 * value of this <code>SerialBlob</code> object.
68 * @serial
69 */
70 private byte[] buf;
71
72 /**
73 * The internal representation of the <code>Blob</code> object on which this
74 * <code>SerialBlob</code> object is based.
75 */
76 @SuppressWarnings("serial") // Not statically typed as Serializable; checked in writeObject
77 private Blob blob;
78
79 /**
80 * The number of bytes in this <code>SerialBlob</code> object's
81 * array of bytes.
82 * @serial
83 */
84 private long len;
85
86 /**
87 * The original number of bytes in this <code>SerialBlob</code> object's
88 * array of bytes when it was first established.
89 * @serial
90 */
91 private long origLen;
92
93 /**
94 * Constructs a <code>SerialBlob</code> object that is a serialized version of
95 * the given <code>byte</code> array.
96 * <p>
|