net.fortuna.ical4j.util

Class DecoderFactory


public abstract class DecoderFactory
extends java.lang.Object

$Id: DecoderFactory.java,v 1.4 2008/12/16 12:34:53 fortuna Exp $ Created on 13/05/2006

Field Summary

static String
KEY_FACTORY_CLASS
The system property used to specify an alternate DecoderFactory implementation.

Method Summary

abstract BinaryDecoder
createBinaryDecoder(Encoding encoding)
Returns a new BinaryDecoder for the specified encoding.
abstract StringDecoder
createStringDecoder(Encoding encoding)
Returns a new StringDecoder for the specified encoding.
static DecoderFactory
getInstance()

Field Details

KEY_FACTORY_CLASS

public static final String KEY_FACTORY_CLASS
The system property used to specify an alternate DecoderFactory implementation.

Method Details

createBinaryDecoder

public abstract BinaryDecoder createBinaryDecoder(Encoding encoding)
            throws UnsupportedEncodingException
Returns a new BinaryDecoder for the specified encoding.
Parameters:
encoding -
Returns:
a BinaryDecoder instance

createStringDecoder

public abstract StringDecoder createStringDecoder(Encoding encoding)
            throws UnsupportedEncodingException
Returns a new StringDecoder for the specified encoding.
Parameters:
encoding -
Returns:
a StringDecoder instance

getInstance

public static final DecoderFactory getInstance()
Returns:
Returns the instance.