| Modifier and Type | Field and Description |
|---|---|
static IdentityEncoder |
INSTANCE |
| Constructor and Description |
|---|
IdentityEncoder() |
| 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.
|
public static final IdentityEncoder INSTANCE
public Object toStorage(Object content)
Encoderpublic Object fromStorage(Object content)
EncoderfromStorage in interface Encodercontent - data as stored in the cache, never null.public boolean isStorageFormatFilterable()
isStorageFormatFilterable in interface Encoderpublic MediaType getStorageFormat()
EncoderMediaType produced by this encoder or null if the storage format is not known.getStorageFormat in interface Encoderpublic short id()
EncoderEncoderIds.Copyright © 2022 JBoss by Red Hat. All rights reserved.