Class EncoderFactory
java.lang.Object
is.galia.codec.EncoderFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic Encoder
newEncoder
(Encode encode, Arena arena) Returns a new instance capable of encoding the given format, based on the setting ofKey.ENCODER_FORMATS
.
-
Method Details
-
getAllEncoders
-
getEnabledEncoders
- Returns:
- Set of instances of all
Encoder
s that are mapped to a format in theKey.ENCODER_FORMATS
configuration key.
-
getPluginEncoders
- Returns:
- Set of instances of all encoders provided by plugins. The
plugins have not been
initialized
.
-
getAllSupportedFormats
-
newEncoder
public static Encoder newEncoder(Encode encode, Arena arena) throws VariantFormatException, EncoderConfigurationException Returns a new instance capable of encoding the given format, based on the setting of
Key.ENCODER_FORMATS
.N.B.: This behavior differs from that of
DecoderFactory.newDecoder(Format, Arena)
in that configuration preferences are required.- Returns:
- Instance capable of encoding the given format.
- Throws:
EncoderConfigurationException
- if the configuration contains an invalid implementation name for the given format.VariantFormatException
- if the given format is not supported by the chosen implementation.
-