Class UTF8Encoder
- java.lang.Object
-
- org.infinispan.commons.dataconversion.UTF8Encoder
-
-
Field Summary
Fields Modifier and Type Field Description static UTF8Encoder
INSTANCE
-
Constructor Summary
Constructors Constructor Description UTF8Encoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
fromStorage(Object stored)
Convert from storage format to the read/write format.MediaType
getStorageFormat()
Returns theMediaType
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.
-
-
-
Field Detail
-
INSTANCE
public static final UTF8Encoder INSTANCE
-
-
Method Detail
-
toStorage
public Object toStorage(Object content)
Description copied from interface:Encoder
Convert data in the read/write format to the storage format.
-
fromStorage
public Object fromStorage(Object stored)
Description copied from interface:Encoder
Convert from storage format to the read/write format.- Specified by:
fromStorage
in interfaceEncoder
- Parameters:
stored
- data as stored in the cache, never null.- Returns:
- data in the read/write format
-
isStorageFormatFilterable
public boolean isStorageFormatFilterable()
- Specified by:
isStorageFormatFilterable
in interfaceEncoder
- Returns:
- if true, will perform stream and related operation in the storage format.
-
getStorageFormat
public MediaType getStorageFormat()
Description copied from interface:Encoder
Returns theMediaType
produced by this encoder or null if the storage format is not known.- Specified by:
getStorageFormat
in interfaceEncoder
-
id
public short id()
Description copied from interface:Encoder
Each encoder is associated with an unique id in order to optimize serialization. Known ids are kept inEncoderIds
.
-
-