public interface CharacterEscapeHandler
extends org.eclipse.persistence.internal.oxm.CharacterEscapeHandler
Provide an interface to allow for custom character escaping behaviour.
Modifier and Type | Method and 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.
|
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:
escape
in interface org.eclipse.persistence.internal.oxm.CharacterEscapeHandler
buffer
- Array of characters to be escapedstart
- The starting positionlength
- The number of characters being escapedisAttributeValue
- A value of 'true' indicates this is an attribute valueout
- The resulting escaped characters will be written to this Writerjava.io.IOException
- In an error condition, IOException can be thrown to stop the marshalling process