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