public abstract class EncoderFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
KEY_FACTORY_CLASS
The system property used to specify an alternate
EncoderFactory implementation. |
Constructor and Description |
---|
EncoderFactory() |
Modifier and Type | Method and Description |
---|---|
abstract org.apache.commons.codec.BinaryEncoder |
createBinaryEncoder(Encoding encoding)
Returns a new
BinaryEncoder for the specified encoding. |
abstract org.apache.commons.codec.StringEncoder |
createStringEncoder(Encoding encoding)
Returns a new
StringEncoder for the specified encoding. |
static EncoderFactory |
getInstance() |
public static final String KEY_FACTORY_CLASS
EncoderFactory
implementation.public static EncoderFactory getInstance()
public abstract org.apache.commons.codec.BinaryEncoder createBinaryEncoder(Encoding encoding) throws UnsupportedEncodingException
BinaryEncoder
for the specified encoding.encoding
- an encoding typeBinaryEncoder
instanceUnsupportedEncodingException
- where an encoder supporting the
specified encoding is not available.public abstract org.apache.commons.codec.StringEncoder createStringEncoder(Encoding encoding) throws UnsupportedEncodingException
StringEncoder
for the specified encoding.encoding
- an encoding typeStringEncoder
instanceUnsupportedEncodingException
- where an encoder supporting the
specified encoding is not available.