|
jxUtil 0.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.sourceforge.jxutil.sql.type.AbstractBLOB
AbstractBLOB implements generics of the Blob interface.
It defines the (get|set)BinaryStream accessor functions which delegate
their work to the (get|set)Bytes functions.
When extending this class, You still have to define:
TODO:
| Constructor Summary | |
AbstractBLOB()
|
|
| Method Summary | |
InputStream |
getBinaryStream()
Retrieves the BLOB value designated by this Blob instance as a stream. |
private static void |
reThrow(SQLException ex)
|
OutputStream |
setBinaryStream(long opos)
Returns a stream that can be used to write to the BLOB value that this Blob object represents. |
abstract int |
setBytes(long pos,
byte[] bytes)
Writes the array of bytes bytes to this Blob object starting at position pos. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.Blob |
getBytes, length, position, position, setBytes, truncate |
| Constructor Detail |
public AbstractBLOB()
| Method Detail |
public InputStream getBinaryStream()
throws SQLException
getBinaryStream in interface BlobSQLException - if there is an error accessing the BLOB valueBlob.length(),
Blob.getBytes(long,int),
BufferedInputStream
private static final void reThrow(SQLException ex)
throws IOException
IOException
public OutputStream setBinaryStream(long opos)
throws SQLException
setBinaryStream in interface Blobopos - the position in the BLOB value at which to start writing
SQLException - if there is an error accessing the BLOB valuesetBytes(long,byte[]),
BufferedOutputStream
public abstract int setBytes(long pos,
byte[] bytes)
throws SQLException
setBytes in interface Blobpos - the position in the BLOB object at which to start writingbytes - the array of bytes to be written to the BLOB value that
this Blob object represents
SQLException - if there is an error accessing the BLOB value
|
jxUtil 0.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||