BlobOutputStream Class

Definition

public class BlobOutputStream
Inheritance
java.lang.Object
OutputStream
BlobOutputStream

Methods

close()

Closes this output stream and releases any system resources associated with this stream. If any data remains in the buffer it is committed to the service.

flush()

Flushes this output stream and forces any buffered output bytes to be written out. If any data remains in the buffer it is committed to the service.

write(final byte[] data)

Writes bytes from the specified byte array to this output stream.

write(final byte[] data, final int offset, final int length)

Writes length bytes from the specified byte array starting at offset to this output stream.

write(final InputStream sourceStream, final long writeLength)

Writes all data from the InputStream to the Blob.

write(final int byteVal)

Writes the specified byte to this output stream. The general contract for write is that one byte is written to the output stream. The byte to be written is the eight low-order bits of the argument b. The 24 high-order bits of b are ignored.

Applies to