public interface Resource
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Deprecated.
use ByteString class instead.
|
ByteString |
getByteString()
Return the resource as a byte array's clone.
|
String |
getContentType()
Get the content content type of the resource, for example image/jpeg.
|
String |
getExtension()
Returns the normalised extension for this resource, e.g.
|
InputStream |
getInputStream()
Create an input stream for this resource.
|
long |
getSize()
Return size of the resource in bytes.
|
InputStream getInputStream() throws IOException
IOException
@Deprecated byte[] getBytes() throws IOException
IOException
ByteString getByteString() throws IOException
IOException
long getSize() throws IOException
IOException
String getContentType()
String getExtension()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries