open class TransformedResource : ByteArrayResource
An extension of ByteArrayResource that a ResourceTransformer can use to represent an original resource preserving all other information except the content.
Author
Rossen Stoyanchev
Since
5.0
TransformedResource(original: Resource, transformedContent: ByteArray) |
open fun getFilename(): String |
|
open fun lastModified(): Long |
open fun contentLength(): Long
This implementation returns the length of the underlying byte array. |
|
open fun equals(other: Any?): Boolean
This implementation compares the underlying byte array. |
|
open fun exists(): Boolean
This implementation always returns |
|
fun getByteArray(): ByteArray
Return the underlying byte array. |
|
open fun getDescription(): String
This implementation returns a description that includes the passed-in |
|
open fun getInputStream(): InputStream
This implementation returns a ByteArrayInputStream for the underlying byte array. |
|
open fun hashCode(): Int
This implementation returns the hash code based on the underlying byte array. |