Class NioEscapeHandler

  • All Implemented Interfaces:
    org.glassfish.jaxb.core.marshaller.CharacterEscapeHandler

    public class NioEscapeHandler
    extends Object
    implements org.glassfish.jaxb.core.marshaller.CharacterEscapeHandler
    Uses JDK1.4 NIO functionality to escape characters smartly.
    Since:
    1.0.1
    Author:
    Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
    • 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 org.glassfish.jaxb.core.marshaller.CharacterEscapeHandler
        Throws:
        IOException