Interface Transcoder
-
- All Known Implementing Classes:
BinaryTranscoder,DefaultTranscoder,JavaSerializationTranscoder,JBossMarshallingTranscoder,JsonTranscoder,OneToManyTranscoder,ProtostreamBinaryTranscoder,ProtostreamJsonTranscoder,ProtostreamObjectTranscoder,ProtostreamTextTranscoder,TranscoderMarshallerAdapter,XMLTranscoder
public interface Transcoder- Since:
- 9.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Set<MediaType>getSupportedMediaTypes()default booleansupports(MediaType mediaType)default booleansupportsConversion(MediaType mediaType, MediaType other)java.lang.Objecttranscode(java.lang.Object content, MediaType contentType, MediaType destinationType)Transcodes content between two differentMediaType.
-
-
-
Method Detail
-
transcode
java.lang.Object transcode(java.lang.Object content, MediaType contentType, MediaType destinationType)Transcodes content between two differentMediaType.
-
getSupportedMediaTypes
java.util.Set<MediaType> getSupportedMediaTypes()
- Returns:
- all the
MediaTypehandled by this Transcoder.
-
supportsConversion
default boolean supportsConversion(MediaType mediaType, MediaType other)
- Returns:
- true if the transcoder supports the conversion between supplied
MediaType.
-
supports
default boolean supports(MediaType mediaType)
-
-