public class XomDriver extends AbstractXmlDriver
Constructor and Description |
---|
XomDriver() |
XomDriver(Builder builder)
Deprecated.
As of 1.4.9, use
XomDriver() and overload createBuilder() instead |
XomDriver(Builder builder,
NameCoder nameCoder)
Deprecated.
As of 1.4.9, use
#XomDriver(NameCoder) and overload createBuilder() instead |
XomDriver(Builder builder,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4, use
#XomDriver(NameCoder) and overload createBuilder() instead |
Modifier and Type | Method and Description |
---|---|
protected Builder |
createBuilder()
Create the Builder instance.
|
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 text)
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.
|
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.
|
protected Builder |
getBuilder()
Deprecated.
As of 1.4.9, overload
createBuilder() instead |
xmlFriendlyReplacer
getNameCoder
public XomDriver()
public XomDriver(Builder builder)
XomDriver()
and overload createBuilder()
insteadpublic XomDriver(Builder builder, NameCoder nameCoder)
#XomDriver(NameCoder)
and overload createBuilder()
insteadpublic XomDriver(Builder builder, XmlFriendlyReplacer replacer)
#XomDriver(NameCoder)
and overload createBuilder()
insteadprotected Builder getBuilder()
createBuilder()
insteadprotected Builder createBuilder()
XMLReader
instance which is not thread-safe by definition. Therefore each reader
should use its own builder instance to avoid concurrency problems.
Overload this method to configure the generated builder instances e.g.
to activate validation.public HierarchicalStreamReader createReader(java.io.Reader text)
HierarchicalStreamDriver
text
- 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 dataCopyright © 2004–2024 XStream. All rights reserved.