Class ProtostreamObjectTranscoder

  • All Implemented Interfaces:
    Transcoder

    public class ProtostreamObjectTranscoder
    extends java.lang.Object
    implements Transcoder
    • Constructor Detail

      • ProtostreamObjectTranscoder

        public ProtostreamObjectTranscoder​(org.infinispan.protostream.SerializationContext ctx,
                                           java.lang.ClassLoader classLoader)
    • Method Detail

      • transcode

        public java.lang.Object transcode​(java.lang.Object content,
                                          MediaType contentType,
                                          MediaType destinationType)
        Description copied from interface: Transcoder
        Transcodes content between two different MediaType.
        Specified by:
        transcode in interface Transcoder
        Parameters:
        content - Content to transcode.
        contentType - The MediaType of the content.
        destinationType - The target MediaType to convert.
        Returns:
        the transcoded content.