net.fortuna.ical4j.util

Class EncoderFactory


public abstract class EncoderFactory
extends java.lang.Object

$Id: EncoderFactory.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 EncoderFactory implementation.

Method Summary

abstract BinaryEncoder
createBinaryEncoder(Encoding encoding)
Returns a new BinaryEncoder for the specified encoding.
abstract StringEncoder
createStringEncoder(Encoding encoding)
Returns a new StringEncoder for the specified encoding.
static EncoderFactory
getInstance()

Field Details

KEY_FACTORY_CLASS

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

Method Details

createBinaryEncoder

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

createStringEncoder

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

getInstance

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