com.ctc.wstx.api
Class InvalidCharHandler.ReplacingHandler

java.lang.Object
  extended by com.ctc.wstx.api.InvalidCharHandler.ReplacingHandler
All Implemented Interfaces:
InvalidCharHandler
Enclosing interface:
InvalidCharHandler

public static class InvalidCharHandler.ReplacingHandler
extends 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
 
Constructor Summary
InvalidCharHandler.ReplacingHandler(char c)
           
 
Method Summary
 char convertInvalidChar(int c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvalidCharHandler.ReplacingHandler

public InvalidCharHandler.ReplacingHandler(char c)
Method Detail

convertInvalidChar

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