Class WriteXML_ParserEventHandler
- java.lang.Object
-
- dev.pxml.core.reader.parser.eventHandler.WriteXML_ParserEventHandler
-
- All Implemented Interfaces:
IParserEventsHandler<PXMLNode,java.lang.String>
public class WriteXML_ParserEventHandler extends java.lang.Object implements IParserEventsHandler<PXMLNode,java.lang.String>
-
-
Constructor Summary
Constructors Constructor Description WriteXML_ParserEventHandler(java.io.Writer writer)
WriteXML_ParserEventHandler(javax.xml.stream.XMLStreamWriter XMLWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResult()
void
onComment(java.lang.String comment, PXMLNode parentNode, TextLocation location)
void
onNodeEnd(PXMLNode node)
PXMLNode
onNodeStart(PXMLNode node, PXMLNode parentNode)
void
onRootNodeEnd(PXMLNode node)
PXMLNode
onRootNodeStart(PXMLNode node)
void
onStart()
void
onStop()
void
onText(java.lang.String text, PXMLNode parentNode, TextLocation location)
-
-
-
Constructor Detail
-
WriteXML_ParserEventHandler
public WriteXML_ParserEventHandler(java.io.Writer writer) throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
WriteXML_ParserEventHandler
public WriteXML_ParserEventHandler(javax.xml.stream.XMLStreamWriter XMLWriter)
-
-
Method Detail
-
onStart
public void onStart() throws javax.xml.stream.XMLStreamException
- Specified by:
onStart
in interfaceIParserEventsHandler<PXMLNode,java.lang.String>
- Throws:
javax.xml.stream.XMLStreamException
-
onStop
public void onStop() throws javax.xml.stream.XMLStreamException
- Specified by:
onStop
in interfaceIParserEventsHandler<PXMLNode,java.lang.String>
- Throws:
javax.xml.stream.XMLStreamException
-
onRootNodeStart
public PXMLNode onRootNodeStart(PXMLNode node) throws java.lang.Exception
- Specified by:
onRootNodeStart
in interfaceIParserEventsHandler<PXMLNode,java.lang.String>
- Throws:
java.lang.Exception
-
onRootNodeEnd
public void onRootNodeEnd(PXMLNode node) throws javax.xml.stream.XMLStreamException
- Specified by:
onRootNodeEnd
in interfaceIParserEventsHandler<PXMLNode,java.lang.String>
- Throws:
javax.xml.stream.XMLStreamException
-
onNodeStart
public PXMLNode onNodeStart(PXMLNode node, PXMLNode parentNode) throws java.lang.Exception
- Specified by:
onNodeStart
in interfaceIParserEventsHandler<PXMLNode,java.lang.String>
- Throws:
java.lang.Exception
-
onNodeEnd
public void onNodeEnd(PXMLNode node) throws javax.xml.stream.XMLStreamException
- Specified by:
onNodeEnd
in interfaceIParserEventsHandler<PXMLNode,java.lang.String>
- Throws:
javax.xml.stream.XMLStreamException
-
onText
public void onText(java.lang.String text, PXMLNode parentNode, TextLocation location) throws javax.xml.stream.XMLStreamException
- Specified by:
onText
in interfaceIParserEventsHandler<PXMLNode,java.lang.String>
- Throws:
javax.xml.stream.XMLStreamException
-
onComment
public void onComment(java.lang.String comment, PXMLNode parentNode, TextLocation location) throws javax.xml.stream.XMLStreamException
- Specified by:
onComment
in interfaceIParserEventsHandler<PXMLNode,java.lang.String>
- Throws:
javax.xml.stream.XMLStreamException
-
getResult
public java.lang.String getResult()
- Specified by:
getResult
in interfaceIParserEventsHandler<PXMLNode,java.lang.String>
-
-