Package net.fortuna.ical4j.util
Class DefaultEncoderFactory
- java.lang.Object
-
- net.fortuna.ical4j.util.EncoderFactory
-
- net.fortuna.ical4j.util.DefaultEncoderFactory
-
public class DefaultEncoderFactory extends EncoderFactory
Default encoder factory implementation. $Id$ Created on 13/05/2006
-
-
Field Summary
-
Fields inherited from class net.fortuna.ical4j.util.EncoderFactory
KEY_FACTORY_CLASS
-
-
Constructor Summary
Constructors Constructor Description DefaultEncoderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.codec.BinaryEncoder
createBinaryEncoder(Encoding encoding)
Returns a newBinaryEncoder
for the specified encoding.org.apache.commons.codec.StringEncoder
createStringEncoder(Encoding encoding)
Returns a newStringEncoder
for the specified encoding.-
Methods inherited from class net.fortuna.ical4j.util.EncoderFactory
getInstance
-
-
-
-
Method Detail
-
createBinaryEncoder
public org.apache.commons.codec.BinaryEncoder createBinaryEncoder(Encoding encoding) throws UnsupportedEncodingException
Returns a newBinaryEncoder
for the specified encoding.- Specified by:
createBinaryEncoder
in classEncoderFactory
- Parameters:
encoding
- an encoding type- Returns:
- a
BinaryEncoder
instance - Throws:
UnsupportedEncodingException
- where an encoder supporting the specified encoding is not available.
-
createStringEncoder
public org.apache.commons.codec.StringEncoder createStringEncoder(Encoding encoding) throws UnsupportedEncodingException
Returns a newStringEncoder
for the specified encoding.- Specified by:
createStringEncoder
in classEncoderFactory
- Parameters:
encoding
- an encoding type- Returns:
- a
StringEncoder
instance - Throws:
UnsupportedEncodingException
- where an encoder supporting the specified encoding is not available.
-
-