Class UTF8Encoder
java.lang.Object
org.infinispan.commons.dataconversion.UTF8Encoder
- All Implemented Interfaces:
Encoder
Deprecated.
Since 12.1, to be removed in a future version.
Encoder to/from UTF-8 content using the java string encoding mechanism.
- Since:
- 9.1
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromStorage
(Object stored) Deprecated.Convert from storage format to the read/write format.Deprecated.Returns theMediaType
produced by this encoder or null if the storage format is not known.short
id()
Deprecated.Each encoder is associated with an unique id in order to optimize serialization.boolean
Deprecated.Deprecated.Convert data in the read/write format to the storage format.
-
Field Details
-
INSTANCE
Deprecated.
-
-
Constructor Details
-
UTF8Encoder
public UTF8Encoder()Deprecated.
-
-
Method Details
-
toStorage
Deprecated.Description copied from interface:Encoder
Convert data in the read/write format to the storage format. -
fromStorage
Deprecated.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()Deprecated.- Specified by:
isStorageFormatFilterable
in interfaceEncoder
- Returns:
- if true, will perform stream and related operation in the storage format.
-
getStorageFormat
Deprecated.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()Deprecated.Description copied from interface:Encoder
Each encoder is associated with an unique id in order to optimize serialization. Known ids are kept inEncoderIds
.
-