public abstract class BlobOutputStream extends OutputStream implements ReadFromSupport
WritableBlob.getOutputStream() method.| Constructor and Description |
|---|
BlobOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
abstract WritableBlob |
getBlob()
Get the blob to which this output stream belongs.
|
long |
readFrom(InputStream inputStream,
long length)
Read data from the given input stream and write it to this output stream.
|
public abstract WritableBlob getBlob()
public long readFrom(InputStream inputStream, long length) throws StreamCopyException
ReadFromSupportlength argument is different from -1
and the number of bytes transferred is equal to length.
readFrom in interface ReadFromSupportinputStream - An input stream to read data from. This method will not close the stream.length - the number of bytes to transfer, or -1 if the method should
transfer data until the end of the input stream is reachedStreamCopyExceptionCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.