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 Details

    • INSTANCE

      public static final UTF8Encoder INSTANCE
      Deprecated.
  • Constructor Details

    • UTF8Encoder

      public UTF8Encoder()
      Deprecated.
  • Method Details

    • toStorage

      public Object toStorage(Object content)
      Deprecated.
      Description copied from interface: Encoder
      Convert data in the read/write format to the storage format.
      Specified by:
      toStorage in interface Encoder
      Parameters:
      content - data to be converted, never null.
      Returns:
      Object in the storage format.
    • fromStorage

      public Object fromStorage(Object stored)
      Deprecated.
      Description copied from interface: Encoder
      Convert from storage format to the read/write format.
      Specified by:
      fromStorage in interface Encoder
      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 interface Encoder
      Returns:
      if true, will perform stream and related operation in the storage format.
    • getStorageFormat

      public MediaType getStorageFormat()
      Deprecated.
      Description copied from interface: Encoder
      Returns the MediaType produced by this encoder or null if the storage format is not known.
      Specified by:
      getStorageFormat in interface Encoder
    • 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 in EncoderIds.
      Specified by:
      id in interface Encoder
      Returns:
      unique identifier for this encoder