EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.oxm
Interface CharacterEscapeHandler


public interface CharacterEscapeHandler

Provide an interface to allow for custom character escaping behaviour.


Method Summary
 void escape(char[] buffer, int start, int length, boolean isAttributeValue, java.io.Writer out)
           Perform character escaping and write the result to the output.
 

Method Detail

escape

void escape(char[] buffer,
            int start,
            int length,
            boolean isAttributeValue,
            java.io.Writer out)
            throws java.io.IOException

Perform character escaping and write the result to the output.

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

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

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference