package org.postgresql.jdbc3; import java.sql.*; public abstract class AbstractJdbc3Blob extends org.postgresql.jdbc2.AbstractJdbc2Blob { public AbstractJdbc3Blob(org.postgresql.PGConnection conn, int oid) throws SQLException { super(conn, oid); } /** * 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. * * @param pos the position in the BLOB object at which * to start writing * @param bytes the array of bytes to be written to the BLOB * value that this Blob object represents * @return the number of bytes written * @exception SQLException if there is an error accessing the * BLOB value * @see #getBytes * @since 1.4 */ public int setBytes(long pos, byte[] bytes) throws SQLException { throw org.postgresql.Driver.notImplemented(); } /** * 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. * Writing starts at position pos in the BLOB * value; len bytes from the given byte array are written. * * @param pos the position in the BLOB object at which * to start writing * @param bytes the array of bytes to be written to this BLOB * object * @param offset the offset into the array bytes at which * to start reading the bytes to be set * @param len the number of bytes to be written to the BLOB * value from the array of bytes bytes * @return the number of bytes written * @exception SQLException if there is an error accessing the * BLOB value * @see #getBytes * @since 1.4 */ public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException { throw org.postgresql.Driver.notImplemented(); } /** * Retrieves a stream that can be used to write to the BLOB * value that this Blob object represents. The stream begins * at position pos. * * @param pos the position in the BLOB value at which * to start writing * @return a java.io.OutputStream object to which data can * be written * @exception SQLException if there is an error accessing the * BLOB value * @see #getBinaryStream * @since 1.4 */ public java.io.OutputStream setBinaryStream(long pos) throws SQLException { throw org.postgresql.Driver.notImplemented(); } /** * Truncates the BLOB value that this Blob * object represents to be len bytes in length. * * @param len the length, in bytes, to which the BLOB value * that this Blob object represents should be truncated * @exception SQLException if there is an error accessing the * BLOB value * @since 1.4 */ public void truncate(long len) throws SQLException { throw org.postgresql.Driver.notImplemented(); } }