com.sun.xml.bind.marshaller
Class NioEscapeHandler

java.lang.Object
  extended by com.sun.xml.bind.marshaller.NioEscapeHandler
All Implemented Interfaces:
CharacterEscapeHandler

public class NioEscapeHandler
extends Object
implements CharacterEscapeHandler

Uses JDK1.4 NIO functionality to escape characters smartly.

Since:
1.0.1

Constructor Summary
NioEscapeHandler(String charsetName)
           
 
Method Summary
 void escape(char[] ch, int start, int length, boolean isAttVal, Writer out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NioEscapeHandler

public NioEscapeHandler(String charsetName)
Method Detail

escape

public void escape(char[] ch,
                   int start,
                   int length,
                   boolean isAttVal,
                   Writer out)
            throws IOException
Specified by:
escape in interface CharacterEscapeHandler
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