public class OutputBlob
extends java.lang.Object
implements java.sql.Blob
| Constructor and Description |
|---|
OutputBlob(java.io.InputStream inputStream,
long length) |
| Modifier and Type | Method and Description |
|---|---|
void |
free() |
java.io.InputStream |
getBinaryStream() |
java.io.InputStream |
getBinaryStream(long pos,
long length) |
byte[] |
getBytes(long pos,
int length) |
long |
length() |
long |
position(java.sql.Blob pattern,
long start) |
long |
position(byte[] pattern,
long start) |
java.io.OutputStream |
setBinaryStream(long pos) |
int |
setBytes(long pos,
byte[] bytes) |
int |
setBytes(long pos,
byte[] bytes,
int offset,
int length) |
void |
truncate(long length) |
public void free()
throws java.sql.SQLException
free in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.InputStream getBinaryStream()
getBinaryStream in interface java.sql.Blobpublic java.io.InputStream getBinaryStream(long pos,
long length)
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic byte[] getBytes(long pos,
int length)
throws java.sql.SQLException
getBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic long length()
length in interface java.sql.Blobpublic long position(java.sql.Blob pattern,
long start)
position in interface java.sql.Blobpublic long position(byte[] pattern,
long start)
position in interface java.sql.Blobpublic java.io.OutputStream setBinaryStream(long pos)
setBinaryStream in interface java.sql.Blobpublic int setBytes(long pos,
byte[] bytes)
setBytes in interface java.sql.Blobpublic int setBytes(long pos,
byte[] bytes,
int offset,
int length)
setBytes in interface java.sql.Blobpublic void truncate(long length)
truncate in interface java.sql.Blob