public class StaxDriver extends AbstractXmlDriver
Constructor and Description |
---|
StaxDriver() |
StaxDriver(NameCoder nameCoder) |
StaxDriver(QNameMap qnameMap) |
StaxDriver(QNameMap qnameMap,
NameCoder nameCoder) |
StaxDriver(QNameMap qnameMap,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4, use
StaxDriver(QNameMap, NameCoder) instead. |
StaxDriver(XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4, use
StaxDriver(NameCoder) instead. |
Modifier and Type | Method and Description |
---|---|
protected XMLInputFactory |
createInputFactory() |
protected XMLOutputFactory |
createOutputFactory() |
protected XMLStreamReader |
createParser(InputStream xml) |
protected XMLStreamReader |
createParser(Reader xml) |
protected XMLStreamReader |
createParser(Source source) |
HierarchicalStreamReader |
createReader(File in)
Create the HierarchicalStreamReader with the stream parser reading from a File.
|
HierarchicalStreamReader |
createReader(InputStream in)
Create the HierarchicalStreamReader with the stream parser reading from the input stream.
|
HierarchicalStreamReader |
createReader(Reader xml)
Create the HierarchicalStreamReader with the stream parser reading from the IO reader.
|
HierarchicalStreamReader |
createReader(URL in)
Create the HierarchicalStreamReader with the stream parser reading from a URL.
|
AbstractPullReader |
createStaxReader(XMLStreamReader in) |
StaxWriter |
createStaxWriter(XMLStreamWriter out) |
StaxWriter |
createStaxWriter(XMLStreamWriter out,
boolean writeStartEndDocument) |
HierarchicalStreamWriter |
createWriter(OutputStream out)
Create the HierarchicalStreamWriter with the formatted writer.
|
HierarchicalStreamWriter |
createWriter(Writer out)
Create the HierarchicalStreamWriter with the formatted writer.
|
XMLInputFactory |
getInputFactory() |
XMLOutputFactory |
getOutputFactory() |
QNameMap |
getQnameMap() |
boolean |
isRepairingNamespace() |
void |
setQnameMap(QNameMap qnameMap) |
void |
setRepairingNamespace(boolean repairing) |
xmlFriendlyReplacer
getNameCoder
public StaxDriver()
public StaxDriver(QNameMap qnameMap)
public StaxDriver(NameCoder nameCoder)
public StaxDriver(QNameMap qnameMap, XmlFriendlyReplacer replacer)
StaxDriver(QNameMap, NameCoder)
instead.public StaxDriver(XmlFriendlyReplacer replacer)
StaxDriver(NameCoder)
instead.public HierarchicalStreamReader createReader(Reader xml)
HierarchicalStreamDriver
xml
- the Reader
with the data to parsepublic HierarchicalStreamReader createReader(InputStream in)
HierarchicalStreamDriver
in
- the InputStream
with the data to parsepublic HierarchicalStreamReader createReader(URL in)
AbstractDriver
createReader
in interface HierarchicalStreamDriver
createReader
in class AbstractDriver
in
- the URL
defining the location with the data to parsepublic HierarchicalStreamReader createReader(File in)
AbstractDriver
createReader
in interface HierarchicalStreamDriver
createReader
in class AbstractDriver
in
- the URL
defining the location with the data to parsepublic HierarchicalStreamWriter createWriter(Writer out)
HierarchicalStreamDriver
out
- the Writer
to receive the formatted datapublic HierarchicalStreamWriter createWriter(OutputStream out)
HierarchicalStreamDriver
out
- the OutputStream
to receive the formatted datapublic AbstractPullReader createStaxReader(XMLStreamReader in)
public StaxWriter createStaxWriter(XMLStreamWriter out, boolean writeStartEndDocument) throws XMLStreamException
XMLStreamException
public StaxWriter createStaxWriter(XMLStreamWriter out) throws XMLStreamException
XMLStreamException
public QNameMap getQnameMap()
public void setQnameMap(QNameMap qnameMap)
public XMLInputFactory getInputFactory()
public XMLOutputFactory getOutputFactory()
public boolean isRepairingNamespace()
public void setRepairingNamespace(boolean repairing)
protected XMLStreamReader createParser(Reader xml) throws XMLStreamException
XMLStreamException
protected XMLStreamReader createParser(InputStream xml) throws XMLStreamException
XMLStreamException
protected XMLStreamReader createParser(Source source) throws XMLStreamException
XMLStreamException
protected XMLInputFactory createInputFactory()
protected XMLOutputFactory createOutputFactory()
Copyright © 2004–2017 XStream. All rights reserved.