public class DefaultEncoderFactory extends EncoderFactory
KEY_FACTORY_CLASS
Constructor | Description |
---|---|
DefaultEncoderFactory() |
Modifier and Type | Method | 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. |
getInstance
public org.apache.commons.codec.BinaryEncoder createBinaryEncoder(Encoding encoding) throws UnsupportedEncodingException
BinaryEncoder
for the specified encoding.createBinaryEncoder
in class EncoderFactory
encoding
- 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 EncoderFactory
encoding
- an encoding typeStringEncoder
instanceUnsupportedEncodingException
- where an encoder supporting the
specified encoding is not available.