Package com.sun.xml.bind.marshaller
Class NioEscapeHandler
java.lang.Object
com.sun.xml.bind.marshaller.NioEscapeHandler
- All Implemented Interfaces:
CharacterEscapeHandler
Uses JDK1.4 NIO functionality to escape characters smartly.
- Since:
- 1.0.1
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NioEscapeHandler
-
-
Method Details
-
escape
public void escape(char[] ch, int start, int length, boolean isAttVal, Writer out) throws IOException - Specified by:
escape
in interfaceCharacterEscapeHandler
- Parameters:
ch
- The array of characters.start
- The starting position.length
- The number of characters to use.isAttVal
- true if this is an attribute value literal.- Throws:
IOException
-