Package net.fortuna.ical4j.util
Class DecoderFactory
- java.lang.Object
-
- net.fortuna.ical4j.util.DecoderFactory
-
- Direct Known Subclasses:
DefaultDecoderFactory
public abstract class DecoderFactory extends Object
Abstract base class for decoder factory implementations. $Id$ Created on 13/05/2006
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_FACTORY_CLASSThe system property used to specify an alternateDecoderFactoryimplementation.
-
Constructor Summary
Constructors Constructor Description DecoderFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.apache.commons.codec.BinaryDecodercreateBinaryDecoder(Encoding encoding)Returns a newBinaryDecoderfor the specified encoding.abstract org.apache.commons.codec.StringDecodercreateStringDecoder(Encoding encoding)Returns a newStringDecoderfor the specified encoding.static DecoderFactorygetInstance()
-
-
-
Field Detail
-
KEY_FACTORY_CLASS
public static final String KEY_FACTORY_CLASS
The system property used to specify an alternateDecoderFactoryimplementation.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static DecoderFactory getInstance()
- Returns:
- Returns the instance.
-
createBinaryDecoder
public abstract org.apache.commons.codec.BinaryDecoder createBinaryDecoder(Encoding encoding) throws UnsupportedEncodingException
Returns a newBinaryDecoderfor the specified encoding.- Parameters:
encoding- an encoding type- Returns:
- a
BinaryDecoderinstance - Throws:
UnsupportedEncodingException- where an encoder supporting the specified encoding is not available.
-
createStringDecoder
public abstract org.apache.commons.codec.StringDecoder createStringDecoder(Encoding encoding) throws UnsupportedEncodingException
Returns a newStringDecoderfor the specified encoding.- Parameters:
encoding- an encoding type- Returns:
- a
StringDecoderinstance - Throws:
UnsupportedEncodingException- where an encoder supporting the specified encoding is not available.
-
-