Top Description Fields Constructors Methods
net.fortuna.ical4j.util

public abstract Class DecoderFactory

extends Object
Class Inheritance
Known Direct Subclasses
net.fortuna.ical4j.util.DefaultDecoderFactory
Imports
net.fortuna.ical4j.model.parameter.Encoding, org.apache.commons.codec.BinaryDecoder, .StringDecoder, java.io.UnsupportedEncodingException, java.util.Optional

Abstract base class for decoder factory implementations. $Id$ Created on 13/05/2006
Author
Ben Fortuna

Field Summary

Modifier and TypeField and Description
private static final DecoderFactory
public static final String
KEY_FACTORY_CLASS

The system property used to specify an alternate DecoderFactory implementation.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract BinaryDecoder

Returns:

a BinaryDecoder instance
createBinaryDecoder
(Encoding
an encoding type
encoding
)

Returns a new BinaryDecoder for the specified encoding.

public abstract StringDecoder

Returns:

a StringDecoder instance
createStringDecoder
(Encoding
an encoding type
encoding
)

Returns a new StringDecoder for the specified encoding.

public static DecoderFactory

Returns:

Returns the instance.
getInstance
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instanceback to summary
private static final DecoderFactory instance
KEY_FACTORY_CLASSback to summary
public static final String KEY_FACTORY_CLASS

The system property used to specify an alternate DecoderFactory implementation.

Constructor Detail

DecoderFactoryback to summary
public DecoderFactory()

Method Detail

createBinaryDecoderback to summary
public abstract BinaryDecoder createBinaryDecoder(Encoding encoding) throws UnsupportedEncodingException

Returns a new BinaryDecoder for the specified encoding.

Parameters
encoding:Encoding

an encoding type

Returns:BinaryDecoder

a BinaryDecoder instance

Exceptions
UnsupportedEncodingException:
where an encoder supporting the specified encoding is not available.
createStringDecoderback to summary
public abstract StringDecoder createStringDecoder(Encoding encoding) throws UnsupportedEncodingException

Returns a new StringDecoder for the specified encoding.

Parameters
encoding:Encoding

an encoding type

Returns:StringDecoder

a StringDecoder instance

Exceptions
UnsupportedEncodingException:
where an encoder supporting the specified encoding is not available.
getInstanceback to summary
public static DecoderFactory getInstance()
Returns:DecoderFactory

Returns the instance.