Class AbstractIntegerCodec

  • All Implemented Interfaces:
    Codec<java.lang.Integer>
    Direct Known Subclasses:
    HTMLEntityCodec

    public class AbstractIntegerCodec
    extends AbstractCodec<java.lang.Integer>
    This class is intended to be an alternative Abstract Implementation for parsing encoding data by focusing on int as opposed to Character. Because non-BMP code points cannot be represented by a char, this class remedies that by parsing string data as codePoints as opposed to a stream of chars.
    Since:
    2017 -- Adapted from Jeff Williams' original Codec class.
    Author:
    Matt Seil (mseil .at. owasp.org)
    • Constructor Detail

      • AbstractIntegerCodec

        public AbstractIntegerCodec()
    • Method Detail

      • decode

        public java.lang.String decode​(java.lang.String input)
        Decode a String that was encoded using the encode method in this Class
        Parameters:
        input - the String to decode
        Returns:
        the decoded String