Class InvalidCharHandler.ReplacingHandler

  • All Implemented Interfaces:
    InvalidCharHandler
    Enclosing interface:
    InvalidCharHandler

    public static class InvalidCharHandler.ReplacingHandler
    extends java.lang.Object
    implements InvalidCharHandler
    Alternative to the default handler, this handler converts all invalid characters to the specified output character. That character will not be further verified or modified by the stream writer.
    • Field Detail

      • mReplacementChar

        final char mReplacementChar
    • Constructor Detail

      • ReplacingHandler

        public ReplacingHandler​(char c)
    • Method Detail

      • convertInvalidChar

        public char convertInvalidChar​(int c)
                                throws java.io.IOException
        Specified by:
        convertInvalidChar in interface InvalidCharHandler
        Throws:
        java.io.IOException