Interface Transcoder
- All Known Implementing Classes:
AbstractTranscoder
,BinaryTranscoder
,DefaultTranscoder
,JavaSerializationTranscoder
,JBossMarshallingTranscoder
,JsonTranscoder
,OneToManyTranscoder
,ProtostreamTranscoder
,TranscoderMarshallerAdapter
,TwoStepTranscoder
,XMLTranscoder
public interface Transcoder
Converts content between two or more
MediaType
s.
Note: A transcoder must be symmetric: if it can convert from media type X to media type Y, it must also be able to convert from Y to X.
- Since:
- 9.2
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
default boolean
supportsConversion
(MediaType mediaType, MediaType other) Transcodes content between two differentMediaType
.
-
Method Details
-
transcode
Transcodes content between two differentMediaType
. -
getSupportedMediaTypes
- Returns:
- all the
MediaType
handled by this Transcoder.
-
supportsConversion
- Returns:
true
if the transcoder supports the conversion between the suppliedMediaType
s.
-
supports
- Returns:
true
iff the transcoder supports the conversion to and from the givenMediaType
.
-