public interface SerializableResource
| Modifier and Type | Method and Description |
|---|---|
byte[] |
toByteArray()
Converts this resource into an array of bytes representation.
|
byte[] |
toByteArray(boolean shrink)
Converts this resource into an array of bytes representation.
|
byte[] toByteArray()
throws java.io.IOException
java.io.IOExceptionbyte[] toByteArray(boolean shrink)
throws java.io.IOException
shrink - True if, when converting to a byte array, this resource can modify the returned
bytes in an effort to reduce the size.java.io.IOException