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
MediaTypes.
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 booleandefault booleansupportsConversion(MediaType mediaType, MediaType other) Transcodes content between two differentMediaType.
-
Method Details
-
transcode
Transcodes content between two differentMediaType. -
getSupportedMediaTypes
- Returns:
- all the
MediaTypehandled by this Transcoder.
-
supportsConversion
- Returns:
trueif the transcoder supports the conversion between the suppliedMediaTypes.
-
supports
- Returns:
trueiff the transcoder supports the conversion to and from the givenMediaType.
-