org.firebirdsql.jdbc

Class FBBlob.FBBlobOutputStream

Enclosing Class:
FBBlob
Implemented Interfaces:
FirebirdBlob.BlobOutputStream

public class FBBlob.FBBlobOutputStream
extends OutputStream
implements FirebirdBlob.BlobOutputStream

Method Summary

void
close()
Close this stream.
long
length()
Get Blob length.
void
seek(int position, int seekMode)
void
write(byte[] b, int off, int len)
Write data from the buffer into this stream.
void
write(int b)
Write single byte into the stream.
void
writeSegment(byte[] buf)

Method Details

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.
Specified by:
close in interface FirebirdBlob.BlobOutputStream

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,
Specified by:
length in interface FirebirdBlob.BlobOutputStream
Returns:
length of the blob.

seek

public void seek(int position,
                 int seekMode)
            throws SQLException

write

public void write(byte[] b,
                  int off,
                  int len)
            throws IOException
Write data from the buffer into this stream.
Specified by:
write in interface FirebirdBlob.BlobOutputStream
Parameters:

write

public void write(int b)
            throws IOException
Write single byte into the stream.
Specified by:
write in interface FirebirdBlob.BlobOutputStream
Parameters:

writeSegment

public void writeSegment(byte[] buf)
            throws GDSException

Copyright B) 2001 David Jencks and other authors. All rights reserved.