Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.marshaller

public Class NioEscapeHandler

extends Object
implements CharacterEscapeHandler
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.core.marshaller.CharacterEscapeHandler
Imports
org.glassfish.jaxb.core.marshaller.CharacterEscapeHandler, java.io.IOException, .Writer, java.nio.charset.Charset, .CharsetEncoder

Uses JDK1.4 NIO functionality to escape characters smartly.
Author
Kohsuke Kawaguchi ([email protected])
Since
1.0.1

Field Summary

Modifier and TypeField and Description
private final CharsetEncoder

Constructor Summary

AccessConstructor and Description
public
NioEscapeHandler(String charsetName)

Method Summary

Modifier and TypeMethod and Description
public void
escape(char[] ch, int start, int length, boolean isAttVal, Writer out)

Implements org.glassfish.jaxb.core.marshaller.CharacterEscapeHandler.escape.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

encoderback to summary
private final CharsetEncoder encoder

Constructor Detail

NioEscapeHandlerback to summary
public NioEscapeHandler(String charsetName)

Method Detail

escapeback to summary
public void escape(char[] ch, int start, int length, boolean isAttVal, Writer out) throws IOException

Implements org.glassfish.jaxb.core.marshaller.CharacterEscapeHandler.escape.

Annotations
@Override