Module org.eclipse.persistence.core
Class CharacterEscapeHandlerWrapper
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.record.CharacterEscapeHandlerWrapper
-
- All Implemented Interfaces:
CharacterEscapeHandler
public class CharacterEscapeHandlerWrapper extends Object implements CharacterEscapeHandler
INTERNAL:This class provides an implementation of CharacterEscapeHandler that wraps a CharacterEscapeHandler from the Sun JAXB Implementation.
-
-
Constructor Summary
Constructors Constructor Description CharacterEscapeHandlerWrapper(Object sunHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidescape(char[] buffer, int start, int length, boolean isAttributeValue, Writer out)Perform character escaping and write the result to the output.ObjectgetHandler()
-
-
-
Constructor Detail
-
CharacterEscapeHandlerWrapper
public CharacterEscapeHandlerWrapper(Object sunHandler)
-
-
Method Detail
-
escape
public void escape(char[] buffer, int start, int length, boolean isAttributeValue, Writer out) throws IOExceptionDescription copied from interface:CharacterEscapeHandlerPerform 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:
escapein interfaceCharacterEscapeHandler- Parameters:
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 Writer- Throws:
IOException- In an error condition, IOException can be thrown to stop the marshalling process
-
getHandler
public Object getHandler()
-
-