Class ProtostreamTranscoder

  • All Implemented Interfaces:
    Transcoder

    public class ProtostreamTranscoder
    extends OneToManyTranscoder
    Transcode between application/x-protostream and commons formats
    Since:
    10.0
    • Field Detail

      • logger

        protected static final org.infinispan.util.logging.Log logger
    • Constructor Detail

      • ProtostreamTranscoder

        public ProtostreamTranscoder​(org.infinispan.marshall.protostream.impl.SerializationContextRegistry ctxRegistry,
                                     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.
        Parameters:
        content - Content to transcode.
        contentType - The MediaType of the content.
        destinationType - The target MediaType to convert.
        Returns:
        the transcoded content.