public class TwoStepTranscoder extends Object implements Transcoder
Performs conversions where there is no direct transcoder, but there are two transcoders available:
| Constructor and Description |
|---|
TwoStepTranscoder(Transcoder transcoder1,
Transcoder transcoder2) |
| Modifier and Type | Method and Description |
|---|---|
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 TwoStepTranscoder(Transcoder transcoder1, Transcoder transcoder2)
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 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.