public final class DefaultTranscoder extends Object implements Transcoder
| Constructor and Description |
|---|
DefaultTranscoder(Marshaller marshaller) |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertToOctetStream(Object content,
MediaType contentType,
MediaType destinationType) |
Set<MediaType> |
getSupportedMediaTypes() |
boolean |
supportsConversion(MediaType mediaType,
MediaType other) |
Object |
transcode(Object content,
MediaType contentType,
MediaType destinationType)
Transcodes content between two different
MediaType. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic DefaultTranscoder(Marshaller marshaller)
public Object transcode(Object content, MediaType contentType, MediaType destinationType)
TranscoderMediaType.transcode in interface Transcodercontent - Content to transcode.contentType - The MediaType of the content.destinationType - The target MediaType to convert.public Object convertToOctetStream(Object content, MediaType contentType, MediaType destinationType) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic Set<MediaType> getSupportedMediaTypes()
getSupportedMediaTypes in interface TranscoderMediaType handled by this Transcoder.public boolean supportsConversion(MediaType mediaType, MediaType other)
supportsConversion in interface Transcodertrue if the transcoder supports the conversion between the supplied MediaTypes.Copyright © 2022 JBoss by Red Hat. All rights reserved.