public class FBBlobOutputStream extends java.io.OutputStream implements FirebirdBlob.BlobOutputStream
Modifier and Type | Method and Description |
---|---|
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) |
public void seek(int position, int seekMode) throws java.sql.SQLException
java.sql.SQLException
public long length() throws java.io.IOException
FirebirdBlob.BlobOutputStream
length
in interface FirebirdBlob.BlobOutputStream
java.io.IOException
- if I/O error occurs.public void write(int b) throws java.io.IOException
FirebirdBlob.BlobOutputStream
write
in interface FirebirdBlob.BlobOutputStream
write
in class java.io.OutputStream
b
- data to write, only lowest 8 bits are written.java.io.IOException
- if I/O error occurs.public void writeSegment(byte[] buf) throws GDSException
GDSException
public void write(byte[] b, int off, int len) throws java.io.IOException
FirebirdBlob.BlobOutputStream
write
in interface FirebirdBlob.BlobOutputStream
write
in class java.io.OutputStream
b
- buffer from which data should be written.off
- offset in the buffer.len
- number of bytes to write.java.io.IOException
- if I/O error occurs.public void close() throws java.io.IOException
FirebirdBlob.BlobOutputStream
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface FirebirdBlob.BlobOutputStream
close
in class java.io.OutputStream
java.io.IOException
- if I/O error occurs.Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.