org.firebirdsql.jdbc
Class FBBlob.FBBlobOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.firebirdsql.jdbc.FBBlob.FBBlobOutputStream
All Implemented Interfaces:
FirebirdBlob.BlobOutputStream
Enclosing class:
FBBlob

public class FBBlob.FBBlobOutputStream
extends java.io.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)
           
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

seek

public void seek(int position,
                 int seekMode)
          throws java.sql.SQLException
Throws:
java.sql.SQLException

length

public long length()
            throws java.io.IOException
Description copied from interface: FirebirdBlob.BlobOutputStream
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.
Throws:
java.io.IOException - if I/O error occurs.

write

public void write(int b)
           throws java.io.IOException
Description copied from interface: FirebirdBlob.BlobOutputStream
Write single byte into the stream.

Specified by:
write in interface FirebirdBlob.BlobOutputStream
Throws:
java.io.IOException

writeSegment

public void writeSegment(byte[] buf)
                  throws GDSException
Throws:
GDSException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Description copied from interface: FirebirdBlob.BlobOutputStream
Write data from the buffer into this stream.

Specified by:
write in interface FirebirdBlob.BlobOutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Description copied from interface: FirebirdBlob.BlobOutputStream
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
Throws:
java.io.IOException


Copyright © 2001 David Jencks and other authors. All rights reserved.