Class UTF8ValidationFilter.ValidationBehavior

  • Enclosing class:
    UTF8ValidationFilter

    public abstract static class UTF8ValidationFilter.ValidationBehavior
    extends Object
    The ValidationBehavior class is the class used to determine the behavior in case the conversion fails.
    • Field Detail

      • REPORT

        public static final UTF8ValidationFilter.ValidationBehavior REPORT
        The parameter indicating the UTF-8 validator reports the error if any invalid UTF-8 sequences are found.

        The error is UTFDataFormatException.

      • REPLACE

        public static final UTF8ValidationFilter.ValidationBehavior REPLACE
        The parameter indicating the UTF-8 validator replaces the invalid UTF-8 with the replacement character U+FFFD, or 0xef, 0xbf, 0xbd in UTF-8 encoding.