public class DefaultEncoderFactory extends EncoderFactory
KEY_FACTORY_CLASS| Constructor and Description |
|---|
DefaultEncoderFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.codec.BinaryEncoder |
createBinaryEncoder(Encoding encoding)
Returns a new
BinaryEncoder for the specified encoding. |
org.apache.commons.codec.StringEncoder |
createStringEncoder(Encoding encoding)
Returns a new
StringEncoder for the specified encoding. |
getInstancepublic org.apache.commons.codec.BinaryEncoder createBinaryEncoder(Encoding encoding) throws UnsupportedEncodingException
BinaryEncoder for the specified encoding.createBinaryEncoder in class EncoderFactoryencoding - an encoding typeBinaryEncoder instanceUnsupportedEncodingException - where an encoder supporting the
specified encoding is not available.public org.apache.commons.codec.StringEncoder createStringEncoder(Encoding encoding) throws UnsupportedEncodingException
StringEncoder for the specified encoding.createStringEncoder in class EncoderFactoryencoding - an encoding typeStringEncoder instanceUnsupportedEncodingException - where an encoder supporting the
specified encoding is not available.