|Constructor and Description|
|Modifier and Type||Method and Description|
Read data from the given input stream and write it to the blob.
Write the data to a given output stream.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public long readFrom(InputStream in) throws StreamCopyException
A call to this method has the same effect as requesting an output stream using
WritableBlob.getOutputStream() and copying the data from the input stream to that
output stream, but the implementation may achieve this result in a more efficient way.
The blob must be in state NEW when this method is called. It will be in state UNCOMMITTED after this method completes successfully.
The method transfers data from the input stream to the blob until the end of the input stream is reached.
public void writeTo(OutputStream out) throws StreamCopyException
out- The output stream to write the data to. This method will not close the stream.
StreamCopyException- Thrown if there is an I/O when reading the data from the blob or when writing it to the stream.
StreamCopyException.getOperation()can be used to determine whether the failed operation was a read or a write.
Copyright © The Apache Software Foundation. All Rights Reserved.