API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.sql. Blob View Source
Author(s)
Since
1.2
Version
Serial
Hierarchy
 Blob
Subinterfaces
Description
public interface Blob
  The representation (mapping) in the JavaTM programming language of an SQL BLOB value.
See also:   
Methods
Hide/Show inherited methods
public void free () throws SQLException
  This method frees the Blob object and releases the resources that it holds.
public InputStream getBinaryStream () throws SQLException
  Retrieves the BLOB value designated by this Blob instance as a stream.
public InputStream getBinaryStream (long pos, long length) throws SQLException
  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 SQLException
  Retrieves all or part of the BLOB value that this Blob object represents, as an array of bytes.
public long length () throws SQLException
  Returns the number of bytes in the BLOB value designated by this Blob object.
public long position (Blob pattern, long start) throws SQLException
  Retrieves the byte position in the BLOB value designated by this Blob object at which pattern begins.
public long position (byte[] pattern, long start) throws SQLException
  Retrieves the byte position at which the specified byte array pattern begins within the BLOB value that this Blob object represents.
public OutputStream setBinaryStream (long pos) throws SQLException
  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 SQLException
  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 len) throws SQLException
  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 len) throws SQLException
  Truncates the BLOB value that this Blob object represents to be len bytes in length.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar