API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sql.rowset.serial. SerialBlob View Source
Author(s)
Jonathan Bruce
Since
Version
Serial
Hierarchy
 Object
      SerialBlob
Implements
 Blob
 Serializable
 Cloneable
Subclasses
Description
public class SerialBlob
  A serialized mapping in the Java programming language of an SQL BLOB value.
See also:   
Constructors
public SerialBlob (Blob blob) throws SerialException SQLException
  Constructs a SerialBlob object that is a serialized version of the given Blob object.
public SerialBlob (byte[] b) throws SerialException SQLException
  Constructs a SerialBlob object that is a serialized version of the given byte array.
Methods
Hide/Show inherited methods
public void free () throws SQLException [Specified in Blob]
  This method frees the Blob object and releases the resources that it holds.
public InputStream getBinaryStream () throws SerialException [Specified in Blob]
  Returns this SerialBlob object as an input stream.
public InputStream getBinaryStream (long pos, long length) throws SQLException [Specified in Blob]
  Returns an InputStream object that contains a partial Blob value, starting with the byte specified by pos, which is length bytes in length.
public byte getBytes (long pos, int length) throws SerialException [Specified in Blob]
  Copies the specified number of bytes, starting at the given position, from this SerialBlob object to another array of bytes.
public long length () throws SerialException [Specified in Blob]
  Retrieves the number of bytes in this SerialBlob object's array of bytes.
public long position (Blob pattern, long start) throws SerialException SQLException [Specified in Blob]
  Returns the position in this SerialBlob object where the given Blob object begins, starting the search at the specified position.
public long position (byte[] pattern, long start) throws SerialException SQLException [Specified in Blob]
  Returns the position in this SerialBlob object where the given pattern of bytes begins, starting the search at the specified position.
public OutputStream setBinaryStream (long pos) throws SerialException SQLException [Specified in Blob]
  Retrieves a stream that can be used to write to the BLOB value that this Blob object represents.
public int setBytes (long pos, byte[] bytes) throws SerialException SQLException [Specified in Blob]
  Writes the given array of bytes to the BLOB value that this Blob object represents, starting at position pos, and returns the number of bytes written.
public int setBytes (long pos, byte[] bytes, int offset, int length) throws SerialException SQLException [Specified in Blob]
  Writes all or part of the given byte array to the BLOB value that this Blob object represents and returns the number of bytes written.
public void truncate (long length) throws SerialException [Specified in Blob]
  Truncates the BLOB value that this Blob object represents to be len bytes in length.
Fields
Hide/Show inherited fields
pack-privatefinalstatic long serialVersionUID = "-8144641928112860441"
The identifier that assists in the serialization of this SerialBlob object.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar