public class Reader2Writer extends Object
| Constructor and Description |
|---|
Reader2Writer(javax.xml.stream.XMLStreamReader reader)
Construct from a Reader
|
Reader2Writer(javax.xml.stream.XMLStreamReader reader,
boolean closeReader)
Construct from a Reader
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAsString()
Utility method to write the reader contents to a String
|
void |
outputTo(javax.xml.stream.XMLStreamWriter writer)
outputTo the writer.
|
public Reader2Writer(javax.xml.stream.XMLStreamReader reader)
reader - -- the input to the converterpublic Reader2Writer(javax.xml.stream.XMLStreamReader reader, boolean closeReader)
reader - -- the input to the convertercloseReader - -- close the reader upon completionpublic void outputTo(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
writer - -- the output of the converterjavax.xml.stream.XMLStreamExceptionpublic String getAsString() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.