Class ProtostreamTextTranscoder
- java.lang.Object
-
- org.infinispan.server.core.dataconversion.ProtostreamTextTranscoder
-
- All Implemented Interfaces:
Transcoder
public class ProtostreamTextTranscoder extends java.lang.Object implements Transcoder
-
-
Constructor Summary
Constructors Constructor Description ProtostreamTextTranscoder(org.infinispan.protostream.SerializationContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<MediaType>getSupportedMediaTypes()java.lang.Objecttranscode(java.lang.Object content, MediaType contentType, MediaType destinationType)Transcodes content between two differentMediaType.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.dataconversion.Transcoder
supports, supportsConversion
-
-
-
-
Method Detail
-
transcode
public java.lang.Object transcode(java.lang.Object content, MediaType contentType, MediaType destinationType)Description copied from interface:TranscoderTranscodes content between two differentMediaType.- Specified by:
transcodein interfaceTranscoder- Parameters:
content- Content to transcode.contentType- TheMediaTypeof the content.destinationType- The targetMediaTypeto convert.- Returns:
- the transcoded content.
-
getSupportedMediaTypes
public java.util.Set<MediaType> getSupportedMediaTypes()
- Specified by:
getSupportedMediaTypesin interfaceTranscoder- Returns:
- all the
MediaTypehandled by this Transcoder.
-
-