public class URLBlob extends DefaultStreamBlob
EMPTY_BYTE_ARRAY, EMPTY_INPUT_STREAM, EMPTY_READER, EMPTY_STRING| Constructor and Description |
|---|
URLBlob(URL url) |
URLBlob(URL url,
String ctype) |
URLBlob(URL url,
String ctype,
String encoding) |
URLBlob(URL url,
String ctype,
String encoding,
String filename,
String digest) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getStream() |
boolean |
isPersistent()
Checks whether this blob is persistent.
|
Blob |
persist()
Persist this stream so that
Blob.getStream() method can be called
successfully several times. |
getDigest, getEncoding, getFilename, getMimeType, setDigest, setEncoding, setFilename, setMimeTypeasByteArrayBlob, asStringBlob, getByteArray, getLength, getReader, getString, readBytes, readBytes, readStringcopy, copy, transferTo, transferTo, transferTopublic URLBlob(URL url)
public InputStream getStream() throws IOException
IOExceptionpublic Blob persist() throws IOException
BlobBlob.getStream() method can be called
successfully several times. The persistence is done in a temporary file
or in memory - this is up to the implementation.
Blobs that are already persistent return themselves.
Persistence should update the internal structure of the Blob to make it persistent whenever possible and hence return itself whenever possible. This behavior cannot be guaranteed by every implementation however.
IOExceptionpublic boolean isPersistent()
BlobBlob.getStream() can be
successfully called several times).Copyright © 2013 Nuxeo SA. All Rights Reserved.