Class 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 Detail

      • QUOTABLE_VALUE_EX

        public static final Pattern QUOTABLE_VALUE_EX
      • QUOTED_EX

        public static final Pattern QUOTED_EX
    • Constructor Detail

      • ParameterCodec

        public ParameterCodec()
    • Method Detail

      • decode

        public String decode​(String source)
                      throws org.apache.commons.codec.DecoderException
        Specified by:
        decode in interface org.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 interface org.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 interface org.apache.commons.codec.StringEncoder
        Throws:
        org.apache.commons.codec.EncoderException
      • encode

        public Object encode​(Object source)
                      throws org.apache.commons.codec.EncoderException
        Specified by:
        encode in interface org.apache.commons.codec.Encoder
        Throws:
        org.apache.commons.codec.EncoderException