Package org.docx4j.samples
Class VariableReplaceStAX.MyStAXHandler
java.lang.Object
org.docx4j.openpackaging.parts.StAXHandlerAbstract
org.docx4j.samples.VariableReplaceStAX.MyStAXHandler
- All Implemented Interfaces:
StAXHandlerInterface
- Enclosing class:
- VariableReplaceStAX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleCharacters(XMLStreamReader xmlr, XMLStreamWriter writer) Implement this method; for an example, see VariableReplaceStAX sampleprivate StringBuilderreplace(String wmlTemplateString, int offset, StringBuilder strB, Map<String, ?> mappings) Methods inherited from class org.docx4j.openpackaging.parts.StAXHandlerAbstract
handle, write
-
Constructor Details
-
MyStAXHandler
public MyStAXHandler()
-
-
Method Details
-
handleCharacters
public void handleCharacters(XMLStreamReader xmlr, XMLStreamWriter writer) throws XMLStreamException Description copied from class:StAXHandlerAbstractImplement this method; for an example, see VariableReplaceStAX sample- Specified by:
handleCharactersin classStAXHandlerAbstract- Throws:
XMLStreamException
-
replace
private StringBuilder replace(String wmlTemplateString, int offset, StringBuilder strB, Map<String, ?> mappings)
-