Interface EncoderRegistry
- All Known Implementing Classes:
EncoderRegistryImpl
-
Method Summary
Modifier and TypeMethodDescriptionPerforms a data conversion.<T extends Transcoder>
TgetTranscoder(Class<T> clazz) Looks up aTranscoderin the registrygetTranscoder(MediaType type1, MediaType type2) Retrieves an instance ofTranscoderfrom the registry.booleanisConversionSupported(MediaType from, MediaType to) Returns whether conversion between specificMediaTypes is supportedvoidregisterTranscoder(Transcoder transcoder) Registers a transcoder in the registry
-
Method Details
-
registerTranscoder
Registers a transcoder in the registry- Parameters:
transcoder- the transcoder instance to register
-
getTranscoder
Retrieves an instance ofTranscoderfrom the registry.- Parameters:
type1-MediaTypesupported by the transcoder.type2-MediaTypesupported by the transcoder.- Returns:
- An instance of
Transcodercapable of doing conversions between the supplied MediaTypes.
-
getTranscoder
Looks up aTranscoderin the registry- Type Parameters:
T- the specific transcoder implementation type- Parameters:
clazz- the class of the transcoder- Returns:
- the registered instance of the transcoder
-
isConversionSupported
-
convert
-