public abstract class DecoderFactory
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
DecoderFactory implementation. |
Constructor and Description |
---|
DecoderFactory() |
Modifier and Type | Method and Description |
---|---|
abstract org.apache.commons.codec.BinaryDecoder |
createBinaryDecoder(Encoding encoding)
Returns a new
BinaryDecoder for the specified encoding. |
abstract org.apache.commons.codec.StringDecoder |
createStringDecoder(Encoding encoding)
Returns a new
StringDecoder for the specified encoding. |
static DecoderFactory |
getInstance() |
public static final java.lang.String KEY_FACTORY_CLASS
DecoderFactory
implementation.public static DecoderFactory getInstance()
public abstract org.apache.commons.codec.BinaryDecoder createBinaryDecoder(Encoding encoding) throws java.io.UnsupportedEncodingException
BinaryDecoder
for the specified encoding.encoding
- an encoding typeBinaryDecoder
instancejava.io.UnsupportedEncodingException
- where an encoder supporting the
specified encoding is not available.public abstract org.apache.commons.codec.StringDecoder createStringDecoder(Encoding encoding) throws java.io.UnsupportedEncodingException
StringDecoder
for the specified encoding.encoding
- an encoding typeStringDecoder
instancejava.io.UnsupportedEncodingException
- where an encoder supporting the
specified encoding is not available.