public class BlobOutputStream
extends java.io.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()
Closes this output stream and releases any system resources
associated with this stream.
|
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) |
public 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 java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buf, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.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 java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
- if an I/O error occurs.public void close() throws java.io.IOException
close
is that it closes the output stream. A closed stream cannot perform
output operations and cannot be reopened.
The close
method of OutputStream
does nothing.
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
- if an I/O error occurs.