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(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 text)
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.
|
HierarchicalStreamWriter |
createWriter(OutputStream out)
Create the HierarchicalStreamWriter with the formatted writer.
|
HierarchicalStreamWriter |
createWriter(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(Reader text)
HierarchicalStreamDriver
text
- 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 dataCopyright © 2004–2017 XStream. All rights reserved.