Interface CharacterEscapeHandler

  • All Superinterfaces:

    public interface CharacterEscapeHandler
    extends org.eclipse.persistence.internal.oxm.CharacterEscapeHandler

    Provide an interface to allow for custom character escaping behaviour.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void escape​(char[] buffer, int start, int length, boolean isAttributeValue, out)
      Perform character escaping and write the result to the output.
    • Method Detail

      • escape

        void escape​(char[] buffer,
                    int start,
                    int length,
                    boolean isAttributeValue,

        Perform character escaping and write the result to the output.

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

        • org.xml.sax.ContentHandler
        • org.w3c.dom.Node
        Specified by:
        escape in interface org.eclipse.persistence.internal.oxm.CharacterEscapeHandler
        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: - In an error condition, IOException can be thrown to stop the marshalling process