Package net.fortuna.ical4j.util
Class EncoderFactory
- java.lang.Object
-
- net.fortuna.ical4j.util.EncoderFactory
-
- Direct Known Subclasses:
DefaultEncoderFactory
public abstract class EncoderFactory extends Object
Abstract base class for encoder factory implementations. $Id$ Created on 13/05/2006
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_FACTORY_CLASS
The system property used to specify an alternateEncoderFactory
implementation.
-
Constructor Summary
Constructors Constructor Description EncoderFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.apache.commons.codec.BinaryEncoder
createBinaryEncoder(Encoding encoding)
Returns a newBinaryEncoder
for the specified encoding.abstract org.apache.commons.codec.StringEncoder
createStringEncoder(Encoding encoding)
Returns a newStringEncoder
for the specified encoding.static EncoderFactory
getInstance()
-
-
-
Field Detail
-
KEY_FACTORY_CLASS
public static final String KEY_FACTORY_CLASS
The system property used to specify an alternateEncoderFactory
implementation.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static EncoderFactory getInstance()
- Returns:
- Returns the instance.
-
createBinaryEncoder
public abstract org.apache.commons.codec.BinaryEncoder createBinaryEncoder(Encoding encoding) throws UnsupportedEncodingException
Returns a newBinaryEncoder
for the specified encoding.- Parameters:
encoding
- an encoding type- Returns:
- a
BinaryEncoder
instance - Throws:
UnsupportedEncodingException
- where an encoder supporting the specified encoding is not available.
-
createStringEncoder
public abstract org.apache.commons.codec.StringEncoder createStringEncoder(Encoding encoding) throws UnsupportedEncodingException
Returns a newStringEncoder
for the specified encoding.- Parameters:
encoding
- an encoding type- Returns:
- a
StringEncoder
instance - Throws:
UnsupportedEncodingException
- where an encoder supporting the specified encoding is not available.
-
-