public class Reader2Writer extends Object
Constructor and Description |
---|
Reader2Writer(XMLStreamReader reader)
Construct from a Reader
|
Reader2Writer(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(XMLStreamWriter writer)
outputTo the writer.
|
public Reader2Writer(XMLStreamReader reader)
reader
- -- the input to the converterpublic Reader2Writer(XMLStreamReader reader, boolean closeReader)
reader
- -- the input to the convertercloseReader
- -- close the reader upon completionpublic void outputTo(XMLStreamWriter writer) throws XMLStreamException
writer
- -- the output of the converterXMLStreamException
public String getAsString() throws XMLStreamException
XMLStreamException
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.