public abstract class EncoderFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.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 java.lang.String KEY_FACTORY_CLASS
EncoderFactory implementation.public static final EncoderFactory getInstance()
public abstract org.apache.commons.codec.BinaryEncoder createBinaryEncoder(Encoding encoding) throws java.io.UnsupportedEncodingException
BinaryEncoder for the specified encoding.encoding - an encoding typeBinaryEncoder instancejava.io.UnsupportedEncodingException - where an encoder supporting the
specified encoding is not available.public abstract org.apache.commons.codec.StringEncoder createStringEncoder(Encoding encoding) throws java.io.UnsupportedEncodingException
StringEncoder for the specified encoding.encoding - an encoding typeStringEncoder instancejava.io.UnsupportedEncodingException - where an encoder supporting the
specified encoding is not available.