public interface Transcoder
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.
| Modifier and Type | Method and Description |
|---|---|
Set<MediaType> |
getSupportedMediaTypes() |
default boolean |
supports(MediaType mediaType) |
default boolean |
supportsConversion(MediaType mediaType,
MediaType other) |
Object |
transcode(Object content,
MediaType contentType,
MediaType destinationType)
Transcodes content between two different
MediaType. |
Object transcode(Object content, MediaType contentType, MediaType destinationType)
MediaType.Set<MediaType> getSupportedMediaTypes()
MediaType handled by this Transcoder.default boolean supportsConversion(MediaType mediaType, MediaType other)
true if the transcoder supports the conversion between the supplied MediaTypes.Copyright © 2022 JBoss by Red Hat. All rights reserved.