Package net.fortuna.ical4j.model
Class ParameterCodec
- java.lang.Object
-
- net.fortuna.ical4j.model.ParameterCodec
-
- All Implemented Interfaces:
org.apache.commons.codec.Decoder
,org.apache.commons.codec.Encoder
,org.apache.commons.codec.StringDecoder
,org.apache.commons.codec.StringEncoder
public class ParameterCodec extends Object implements org.apache.commons.codec.StringEncoder, org.apache.commons.codec.StringDecoder
Support for encoding/decoding property values that include quotes, newlines, and escape characters.
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterCodec
INSTANCE
static Pattern
QUOTABLE_VALUE_EX
static Pattern
QUOTED_EX
-
Constructor Summary
Constructors Constructor Description ParameterCodec()
-
-
-
Field Detail
-
INSTANCE
public static final ParameterCodec INSTANCE
-
QUOTABLE_VALUE_EX
public static final Pattern QUOTABLE_VALUE_EX
-
QUOTED_EX
public static final Pattern QUOTED_EX
-
-
Method Detail
-
decode
public String decode(String source) throws org.apache.commons.codec.DecoderException
- Specified by:
decode
in interfaceorg.apache.commons.codec.StringDecoder
- Throws:
org.apache.commons.codec.DecoderException
-
decode
public Object decode(Object source) throws org.apache.commons.codec.DecoderException
- Specified by:
decode
in interfaceorg.apache.commons.codec.Decoder
- Throws:
org.apache.commons.codec.DecoderException
-
encode
public String encode(String source) throws org.apache.commons.codec.EncoderException
- Specified by:
encode
in interfaceorg.apache.commons.codec.StringEncoder
- Throws:
org.apache.commons.codec.EncoderException
-
-