Class PropertyCodec

  • 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 PropertyCodec
    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.
    • Constructor Detail

      • PropertyCodec

        public PropertyCodec()
    • 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