public interface Encoder
Modifier and Type | Method and Description |
---|---|
Object |
fromStorage(Object content)
Convert from storage format to the read/write format.
|
MediaType |
getStorageFormat()
Returns the
MediaType produced by this encoder or null if the storage format is not known. |
short |
id()
Each encoder is associated with an unique id in order to optimize serialization.
|
boolean |
isStorageFormatFilterable() |
Object |
toStorage(Object content)
Convert data in the read/write format to the storage format.
|
Object toStorage(Object content)
content
- data to be converted, never null.Object fromStorage(Object content)
content
- data as stored in the cache, never null.boolean isStorageFormatFilterable()
MediaType getStorageFormat()
MediaType
produced by this encoder or null if the storage format is not known.short id()
EncoderIds
.Copyright © 2021 JBoss by Red Hat. All rights reserved.