Class ProtostreamTranscoder

  • All Implemented Interfaces:
    Transcoder

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

      Fields 
      Modifier and Type Field Description
      protected static org.infinispan.util.logging.Log logger  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProtostreamTranscoder​(org.infinispan.protostream.SerializationContext ctx, java.lang.ClassLoader classLoader)  
    • Field Detail

      • logger

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

      • ProtostreamTranscoder

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

      • setCtx

        public void setCtx​(org.infinispan.protostream.SerializationContext ctx)
      • 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.