org.firebirdsql.jdbc
Interface FirebirdBlob.BlobOutputStream
- FBBlob.FBBlobOutputStream
public static interface FirebirdBlob.BlobOutputStream
Blob output stream. This interface defines methods to write contents
of the Blob field. Some method signatures are copied from the
OutputStream
only because it is abstract class and not interface
that we can extend.
void | close() - Close this stream.
|
long | length() - Get Blob length.
|
void | write(byte[] buffer, int offset, int length) - Write data from the buffer into this stream.
|
void | write(int data) - Write single byte into the stream.
|
close
public void close()
throws IOException
Close this stream. Calling this method closes Blob stream and moves
Blob from temporary into permanent state making any further content
updates impossible.
length
public long length()
throws IOException
Get Blob length. This method is the only available way to obtain
length of a Blob that is in temporary state,
write
public void write(byte[] buffer,
int offset,
int length)
throws IOException
Write data from the buffer into this stream.
buffer
- buffer from which data should be written.offset
- offset in the buffer.length
- number of bytes to write.
write
public void write(int data)
throws IOException
Write single byte into the stream.
data
- data to write, only lowest 8 bits are written.
Copyright B) 2001 David Jencks and other authors. All rights reserved.