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

public Class DefaultDecoderFactory

extends DecoderFactory
Class Inheritance
Imports
net.fortuna.ical4j.model.parameter.Encoding, org.apache.commons.codec.BinaryDecoder, .StringDecoder, org.apache.commons.codec.binary.Base64, org.apache.commons.codec.net.QuotedPrintableCodec, java.io.UnsupportedEncodingException, java.text.MessageFormat

Default decoder factory implementation. $Id$ Created on 13/05/2006
Author
Ben Fortuna

Field Summary

Modifier and TypeField and Description
private static final String
Inherited from net.fortuna.ical4j.util.DecoderFactory:
KEY_FACTORY_CLASS

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BinaryDecoder
createBinaryDecoder(final Encoding
an encoding type
encoding
)

Implements abstract net.fortuna.ical4j.util.DecoderFactory.createBinaryDecoder.

Returns a new BinaryDecoder for the specified encoding.

public StringDecoder
createStringDecoder(final Encoding
an encoding type
encoding
)

Implements abstract net.fortuna.ical4j.util.DecoderFactory.createStringDecoder.

Returns a new StringDecoder for the specified encoding.

Inherited from net.fortuna.ical4j.util.DecoderFactory:
getInstance

Field Detail

UNSUPPORTED_ENCODING_MESSAGEback to summary
private static final String UNSUPPORTED_ENCODING_MESSAGE

Constructor Detail

DefaultDecoderFactoryback to summary
public DefaultDecoderFactory()

Method Detail

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

Implements abstract net.fortuna.ical4j.util.DecoderFactory.createBinaryDecoder.

Doc from net.fortuna.ical4j.util.DecoderFactory.createBinaryDecoder.

Returns a new BinaryDecoder for the specified encoding.

Parameters
encoding:Encoding

an encoding type

Returns:BinaryDecoder

a BinaryDecoder instance

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

Implements abstract net.fortuna.ical4j.util.DecoderFactory.createStringDecoder.

Doc from net.fortuna.ical4j.util.DecoderFactory.createStringDecoder.

Returns a new StringDecoder for the specified encoding.

Parameters
encoding:Encoding

an encoding type

Returns:StringDecoder

a StringDecoder instance

Annotations
@Override
Exceptions
UnsupportedEncodingException:
where an encoder supporting the specified encoding is not available.