|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Blob
Stores binary data.
Not that blobs are not thread safe. While they support requesting multiple concurrent input streams, these streams must be used in the same thread, unless appropriate synchronization or locking is done.
Method Summary | |
---|---|
InputStream |
getInputStream()
Get an input stream to read the data in the blob. |
long |
getLength()
Get the length of the data in the blob, i.e. the number of bytes. |
void |
writeTo(OutputStream out)
Write the data to a given output stream. |
Method Detail |
---|
InputStream getInputStream() throws IOException
IOException
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.long getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |