public class UrlBinaryValue extends ExternalBinaryValue
BinaryValue implementation used to read the content of a resolvable URL. This class computes the
MIME type lazily.EMPTY_CONTENT| Constructor and Description |
|---|
UrlBinaryValue(String sha1,
String sourceName,
URL content,
long size,
String nameHint,
MimeTypeDetector mimeTypeDetector) |
| Modifier and Type | Method and Description |
|---|---|
protected InputStream |
internalStream() |
protected URL |
toUrl() |
getId, getMimeType, getMimeType, getSize, getSourceName, hasMimeType, setMimeType, toStringcompareTo, dispose, equals, getHash, getHexHash, getKey, getReadableSize, getStream, hashCode, keyFor, readpublic UrlBinaryValue(String sha1, String sourceName, URL content, long size, String nameHint, MimeTypeDetector mimeTypeDetector)
protected URL toUrl()
protected InputStream internalStream() throws IOException
internalStream in class AbstractBinaryIOExceptionCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.