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 javax.xml.stream.XMLInputFactory |
createInputFactory() |
protected javax.xml.stream.XMLOutputFactory |
createOutputFactory() |
protected javax.xml.stream.XMLStreamReader |
createParser(java.io.InputStream xml) |
protected javax.xml.stream.XMLStreamReader |
createParser(java.io.Reader xml) |
protected javax.xml.stream.XMLStreamReader |
createParser(javax.xml.transform.Source source) |
HierarchicalStreamReader |
createReader(java.io.File in)
Create the HierarchicalStreamReader with the stream parser reading from a File.
|
HierarchicalStreamReader |
createReader(java.io.InputStream in)
Create the HierarchicalStreamReader with the stream parser reading from the input stream.
|
HierarchicalStreamReader |
createReader(java.io.Reader xml)
Create the HierarchicalStreamReader with the stream parser reading from the IO reader.
|
HierarchicalStreamReader |
createReader(java.net.URL in)
Create the HierarchicalStreamReader with the stream parser reading from a URL.
|
AbstractPullReader |
createStaxReader(javax.xml.stream.XMLStreamReader in) |
StaxWriter |
createStaxWriter(javax.xml.stream.XMLStreamWriter out) |
StaxWriter |
createStaxWriter(javax.xml.stream.XMLStreamWriter out,
boolean writeStartEndDocument) |
HierarchicalStreamWriter |
createWriter(java.io.OutputStream out)
Create the HierarchicalStreamWriter with the formatted writer.
|
HierarchicalStreamWriter |
createWriter(java.io.Writer out)
Create the HierarchicalStreamWriter with the formatted writer.
|
javax.xml.stream.XMLInputFactory |
getInputFactory() |
javax.xml.stream.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(java.io.Reader xml)
HierarchicalStreamDriver
xml
- the Reader
with the data to parsepublic HierarchicalStreamReader createReader(java.io.InputStream in)
HierarchicalStreamDriver
in
- the InputStream
with the data to parsepublic HierarchicalStreamReader createReader(java.net.URL in)
AbstractDriver
createReader
in interface HierarchicalStreamDriver
createReader
in class AbstractDriver
in
- the URL
defining the location with the data to parsepublic HierarchicalStreamReader createReader(java.io.File in)
AbstractDriver
createReader
in interface HierarchicalStreamDriver
createReader
in class AbstractDriver
in
- the URL
defining the location with the data to parsepublic HierarchicalStreamWriter createWriter(java.io.Writer out)
HierarchicalStreamDriver
out
- the Writer
to receive the formatted datapublic HierarchicalStreamWriter createWriter(java.io.OutputStream out)
HierarchicalStreamDriver
out
- the OutputStream
to receive the formatted datapublic AbstractPullReader createStaxReader(javax.xml.stream.XMLStreamReader in)
public StaxWriter createStaxWriter(javax.xml.stream.XMLStreamWriter out, boolean writeStartEndDocument) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public StaxWriter createStaxWriter(javax.xml.stream.XMLStreamWriter out) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public QNameMap getQnameMap()
public void setQnameMap(QNameMap qnameMap)
public javax.xml.stream.XMLInputFactory getInputFactory()
public javax.xml.stream.XMLOutputFactory getOutputFactory()
public boolean isRepairingNamespace()
public void setRepairingNamespace(boolean repairing)
protected javax.xml.stream.XMLStreamReader createParser(java.io.Reader xml) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected javax.xml.stream.XMLStreamReader createParser(java.io.InputStream xml) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected javax.xml.stream.XMLStreamReader createParser(javax.xml.transform.Source source) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected javax.xml.stream.XMLInputFactory createInputFactory()
protected javax.xml.stream.XMLOutputFactory createOutputFactory()
Copyright © 2004–2024 XStream. All rights reserved.