public class OutputBlob
extends Object
implements Blob
| Constructor and Description |
|---|
OutputBlob(InputStream inputStream,
long length) |
| Modifier and Type | Method and Description |
|---|---|
void |
free() |
InputStream |
getBinaryStream() |
InputStream |
getBinaryStream(long pos,
long length) |
byte[] |
getBytes(long pos,
int length) |
long |
length() |
long |
position(Blob pattern,
long start) |
long |
position(byte[] pattern,
long start) |
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 SQLException
free in interface BlobSQLExceptionpublic InputStream getBinaryStream()
getBinaryStream in interface Blobpublic InputStream getBinaryStream(long pos,
long length)
throws SQLException
getBinaryStream in interface BlobSQLExceptionpublic byte[] getBytes(long pos,
int length)
throws SQLException
getBytes in interface BlobSQLExceptionpublic long length()
length in interface Blobpublic long position(Blob pattern,
long start)
position in interface Blobpublic long position(byte[] pattern,
long start)
position in interface Blobpublic OutputStream setBinaryStream(long pos)
setBinaryStream in interface Blobpublic int setBytes(long pos,
byte[] bytes)
setBytes in interface Blobpublic int setBytes(long pos,
byte[] bytes,
int offset,
int length)
setBytes in interface Blobpublic void truncate(long length)
truncate in interface Blob