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.Blob
java.sql.SQLException
public java.io.InputStream getBinaryStream()
getBinaryStream
in interface java.sql.Blob
public java.io.InputStream getBinaryStream(long pos, long length) throws java.sql.SQLException
getBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public byte[] getBytes(long pos, int length) throws java.sql.SQLException
getBytes
in interface java.sql.Blob
java.sql.SQLException
public long length()
length
in interface java.sql.Blob
public long position(java.sql.Blob pattern, long start)
position
in interface java.sql.Blob
public long position(byte[] pattern, long start)
position
in interface java.sql.Blob
public java.io.OutputStream setBinaryStream(long pos)
setBinaryStream
in interface java.sql.Blob
public int setBytes(long pos, byte[] bytes)
setBytes
in interface java.sql.Blob
public int setBytes(long pos, byte[] bytes, int offset, int length)
setBytes
in interface java.sql.Blob
public void truncate(long length)
truncate
in interface java.sql.Blob