@Component public class HerdCharacterEscapeHandler extends Object implements org.eclipse.persistence.oxm.CharacterEscapeHandler
| Constructor and Description |
|---|
HerdCharacterEscapeHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
escape(char[] buffer,
int start,
int length,
boolean isAttributeValue,
Writer outputWriter)
Escape restricted XML 1.1 characters inside the buffer and send the output to the Writer.
|
static boolean |
isXml11RestrictedCharacter(char ch)
Returns whether the specified character is XML 1.1 restricted.
|
public void escape(char[] buffer,
int start,
int length,
boolean isAttributeValue,
Writer outputWriter)
throws IOException
escape in interface org.eclipse.persistence.internal.oxm.CharacterEscapeHandlerbuffer - the buffer.start - the start of the buffer.length - the length of the buffer.isAttributeValue - Flag that determines whether the buffer is an XML attribute or not.outputWriter - the output writer.IOException - which will stop the marshalling process.public static boolean isXml11RestrictedCharacter(char ch)
ch - the character to check.Copyright © 2019. All rights reserved.