Class UTF8Encoder
- java.lang.Object
-
- org.infinispan.commons.dataconversion.UTF8Encoder
-
- All Implemented Interfaces:
Encoder
@Deprecated public class UTF8Encoder extends Object implements 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
Fields Modifier and Type Field Description static UTF8EncoderINSTANCEDeprecated.
-
Constructor Summary
Constructors Constructor Description UTF8Encoder()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectfromStorage(Object stored)Deprecated.Convert from storage format to the read/write format.MediaTypegetStorageFormat()Deprecated.Returns theMediaTypeproduced by this encoder or null if the storage format is not known.shortid()Deprecated.Each encoder is associated with an unique id in order to optimize serialization.booleanisStorageFormatFilterable()Deprecated.ObjecttoStorage(Object content)Deprecated.Convert data in the read/write format to the storage format.
-
-
-
Field Detail
-
INSTANCE
public static final UTF8Encoder INSTANCE
Deprecated.
-
-
Method Detail
-
toStorage
public Object toStorage(Object content)
Deprecated.Description copied from interface:EncoderConvert data in the read/write format to the storage format.
-
fromStorage
public Object fromStorage(Object stored)
Deprecated.Description copied from interface:EncoderConvert from storage format to the read/write format.- Specified by:
fromStoragein 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:
isStorageFormatFilterablein interfaceEncoder- Returns:
- if true, will perform stream and related operation in the storage format.
-
getStorageFormat
public MediaType getStorageFormat()
Deprecated.Description copied from interface:EncoderReturns theMediaTypeproduced by this encoder or null if the storage format is not known.- Specified by:
getStorageFormatin interfaceEncoder
-
id
public short id()
Deprecated.Description copied from interface:EncoderEach encoder is associated with an unique id in order to optimize serialization. Known ids are kept inEncoderIds.
-
-