Class CharacterEscapeHandlerWrapper

  • All Implemented Interfaces:
    CharacterEscapeHandler

    public class CharacterEscapeHandlerWrapper
    extends java.lang.Object
    implements CharacterEscapeHandler
    INTERNAL:

    This class provides an implementation of CharacterEscapeHandler that wraps a CharacterEscapeHandler from the Sun JAXB Implementation.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void escape​(char[] buffer, int start, int length, boolean isAttributeValue, java.io.Writer out)
      Perform character escaping and write the result to the output.
      java.lang.Object getHandler()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CharacterEscapeHandlerWrapper

        public CharacterEscapeHandlerWrapper​(java.lang.Object sunHandler)
    • Method Detail

      • escape

        public void escape​(char[] buffer,
                           int start,
                           int length,
                           boolean isAttributeValue,
                           java.io.Writer out)
                    throws java.io.IOException
        Description copied from interface: CharacterEscapeHandler

        Perform character escaping and write the result to the output.

        Note: This feature is not supported when marshalling to the following targets:

        • javax.xml.stream.XMLStreamWriter
        • javax.xml.stream.XMLEventWriter
        • org.xml.sax.ContentHandler
        • org.w3c.dom.Node

        Specified by:
        escape in interface CharacterEscapeHandler
        Parameters:
        buffer - Array of characters to be escaped
        start - The starting position
        length - The number of characters being escaped
        isAttributeValue - A value of 'true' indicates this is an attribute value
        out - The resulting escaped characters will be written to this Writer
        Throws:
        java.io.IOException - In an error condition, IOException can be thrown to stop the marshalling process
      • getHandler

        public java.lang.Object getHandler()