com.sun.xml.bind.marshaller
Class MinimumEscapeHandler

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

public class MinimumEscapeHandler
extends java.lang.Object
implements CharacterEscapeHandler

Performs no character escaping. Usable only when the output encoding is UTF, but this handler gives the maximum performance.


Field Summary
static CharacterEscapeHandler theInstance
           
 
Method Summary
 void escape(char[] ch, int start, int length, boolean isAttVal, java.io.Writer out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theInstance

public static final CharacterEscapeHandler theInstance
Method Detail

escape

public void escape(char[] ch,
                   int start,
                   int length,
                   boolean isAttVal,
                   java.io.Writer out)
            throws java.io.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:
java.io.IOException