public class HttpImage extends AbstractImage implements UriImage
| Modifier | Constructor and Description |
|---|---|
protected |
HttpImage(URL url,
org.apache.http.client.HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Return the resource as a byte array.
|
ByteString |
getByteString()
Return the resource as a byte array's clone.
|
InputStream |
getInputStream()
Create an input stream for this resource.
|
ResourceInfo |
getResourceInfo() |
long |
getSize()
Return size of the resource in bytes.
|
String |
getUriAsString()
Returns the uri (and hence a unique identifier) for a resource as a String.
|
getContentType, getExtension, setContentType, setExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentType, getExtensionprotected HttpImage(URL url, org.apache.http.client.HttpClient httpClient) throws URISyntaxException, NoSuchAlgorithmException, KeyManagementException
public String getUriAsString()
UriResourcegetUriAsString in interface UriResourcepublic ResourceInfo getResourceInfo()
getResourceInfo in interface UriImagepublic InputStream getInputStream() throws IOException
ResourcegetInputStream in interface ResourceIOExceptionpublic byte[] getBytes()
throws IOException
ResourcegetBytes in interface ResourceIOExceptionpublic ByteString getByteString() throws IOException
ResourcegetByteString in interface ResourceIOExceptionpublic long getSize()
throws IOException
ResourcegetSize in interface ResourceIOExceptionCopyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries