public class XmlReaderWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NEW_LINE |
static String |
XML_WL1_MODEL_PI_NAME |
| Constructor and Description |
|---|
XmlReaderWriter(XMLEventReader xmlEventReader,
XMLEventWriter xmlEventWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(XMLEvent xmlEvent) |
void |
close() |
void |
endExternalFragment(int decIndent) |
XMLEvent |
readEvent() |
void |
readWriteElement(String tagName) |
void |
readWriteToTheEnd() |
void |
readWriteUpToEndElement(String endTag) |
void |
readWriteUpToStartElement(String startTag) |
void |
setOutputAsXmlFragment(boolean outputAsXmlFragment) |
void |
startExternalFragment(int incIndent) |
public static final String XML_WL1_MODEL_PI_NAME
public static final String NEW_LINE
public XmlReaderWriter(XMLEventReader xmlEventReader, XMLEventWriter xmlEventWriter)
public void setOutputAsXmlFragment(boolean outputAsXmlFragment)
public XMLEvent readEvent() throws WLFormatException
WLFormatExceptionpublic void startExternalFragment(int incIndent)
throws XMLStreamException
XMLStreamExceptionpublic void endExternalFragment(int decIndent)
throws XMLStreamException
XMLStreamExceptionpublic void add(XMLEvent xmlEvent) throws XMLStreamException
XMLStreamExceptionpublic void close()
throws WLFormatException
WLFormatExceptionpublic void readWriteToTheEnd()
throws WLFormatException
WLFormatExceptionpublic void readWriteElement(String tagName) throws WLFormatException
WLFormatExceptionpublic void readWriteUpToStartElement(String startTag) throws XMLStreamException
XMLStreamExceptionpublic void readWriteUpToEndElement(String endTag) throws XMLStreamException
XMLStreamExceptionCopyright © 2013-2014 Department of Linguistics, Tübingen University. All Rights Reserved.