Package com.ctc.wstx.api
Class InvalidCharHandler.ReplacingHandler
- java.lang.Object
-
- com.ctc.wstx.api.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ctc.wstx.api.InvalidCharHandler
InvalidCharHandler.FailingHandler, InvalidCharHandler.ReplacingHandler
-
-
Field Summary
Fields Modifier and Type Field Description (package private) char
mReplacementChar
-
Constructor Summary
Constructors Constructor Description ReplacingHandler(char c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
convertInvalidChar(int c)
-
-
-
Method Detail
-
convertInvalidChar
public char convertInvalidChar(int c) throws java.io.IOException
- Specified by:
convertInvalidChar
in interfaceInvalidCharHandler
- Throws:
java.io.IOException
-
-