Class AbstractAttributeValueEscaper

    • Constructor Detail

      • AbstractAttributeValueEscaper

        public AbstractAttributeValueEscaper()
    • Method Detail

      • processAscii

        protected abstract void processAscii​(StringBuilder sb,
                                             char ch)
        Process ASCII character.
        Parameters:
        sb - to append characters to
        ch - to process
      • processNonAscii

        protected abstract void processNonAscii​(StringBuilder sb,
                                                byte... bytes)
        Process non-ASCII character(s).
        Parameters:
        sb - to append characters to
        bytes - to process
      • escapeHex

        protected void escapeHex​(StringBuilder sb,
                                 char... hex)
        Appends a backslash for every two hex characters.
        Parameters:
        sb - to append to
        hex - to read