Interface Encoder

All Known Implementing Classes:
GenericJbossMarshallerEncoder, GlobalMarshallerEncoder, IdentityEncoder, JavaSerializationEncoder, MarshallerEncoder, UTF8Encoder

@Deprecated(forRemoval=true) public interface Encoder
Deprecated, for removal: This API element is subject to removal in a future version.
Since 12.1, without replacement. To be removed in a future version.
Used to convert data between read/write format and storage format.
Since:
9.1
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Convert from storage format to the read/write format.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the MediaType produced by this encoder or null if the storage format is not known.
    short
    id()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Each encoder is associated with an unique id in order to optimize serialization.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    toStorage(Object content)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Convert data in the read/write format to the storage format.
  • Method Details

    • toStorage

      Object toStorage(Object content)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Convert data in the read/write format to the storage format.
      Parameters:
      content - data to be converted, never null.
      Returns:
      Object in the storage format.
    • fromStorage

      Object fromStorage(Object content)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Convert from storage format to the read/write format.
      Parameters:
      content - data as stored in the cache, never null.
      Returns:
      data in the read/write format
    • isStorageFormatFilterable

      boolean isStorageFormatFilterable()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      if true, will perform stream and related operation in the storage format.
    • getStorageFormat

      MediaType getStorageFormat()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the MediaType produced by this encoder or null if the storage format is not known.
    • id

      short id()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Each encoder is associated with an unique id in order to optimize serialization. Known ids are kept in EncoderIds.
      Returns:
      unique identifier for this encoder