public class BlobOutputStream extends OutputStream
| Constructor and Description |
|---|
BlobOutputStream(LargeObject lo)
Create an OutputStream to a large object.
|
BlobOutputStream(LargeObject lo,
int bsize)
Create an OutputStream to a large object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out.
|
void |
write(byte[] buf,
int off,
int len) |
void |
write(int b) |
writepublic BlobOutputStream(LargeObject lo)
lo - LargeObjectpublic BlobOutputStream(LargeObject lo, int bsize)
lo - LargeObjectbsize - The size of the buffer used to improve performancepublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] buf,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush is that calling it is an indication that, if any bytes
previously written have been buffered by the implementation of the output stream, such bytes
should immediately be written to their intended destination.flush in interface Flushableflush in class OutputStreamIOException - if an I/O error occurs.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.