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. |
getInstance
public org.apache.commons.codec.BinaryEncoder createBinaryEncoder(Encoding encoding) throws java.io.UnsupportedEncodingException
BinaryEncoder
for the specified encoding.createBinaryEncoder
in class EncoderFactory
encoding
- an encoding typeBinaryEncoder
instancejava.io.UnsupportedEncodingException
- where an encoder supporting the
specified encoding is not available.public org.apache.commons.codec.StringEncoder createStringEncoder(Encoding encoding) throws java.io.UnsupportedEncodingException
StringEncoder
for the specified encoding.createStringEncoder
in class EncoderFactory
encoding
- an encoding typeStringEncoder
instancejava.io.UnsupportedEncodingException
- where an encoder supporting the
specified encoding is not available.Copyright © 2004-2015 Micronode. All Rights Reserved.