Class XomDriver
java.lang.Object
com.thoughtworks.xstream.io.AbstractDriver
com.thoughtworks.xstream.io.xml.AbstractXmlDriver
com.thoughtworks.xstream.io.xml.XomDriver
- All Implemented Interfaces:
HierarchicalStreamDriver
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXomDriver(XmlFriendlyReplacer replacer) Deprecated.XomDriver(nu.xom.Builder builder) Deprecated.As of 1.4.9, useXomDriver()and overloadcreateBuilder()insteadDeprecated.As of 1.4.9, useXomDriver(NameCoder)and overloadcreateBuilder()insteadXomDriver(nu.xom.Builder builder, XmlFriendlyReplacer replacer) Deprecated.As of 1.4, useXomDriver(NameCoder)and overloadcreateBuilder()instead -
Method Summary
Modifier and TypeMethodDescriptionprotected nu.xom.BuilderCreate the Builder instance.createReader(File in) Create the HierarchicalStreamReader with the stream parser reading from a File.Create the HierarchicalStreamReader with the stream parser reading from the input stream.createReader(Reader text) Create the HierarchicalStreamReader with the stream parser reading from the IO reader.createReader(URL in) Create the HierarchicalStreamReader with the stream parser reading from a URL.createWriter(OutputStream out) Create the HierarchicalStreamWriter with the formatted writer.createWriter(Writer out) Create the HierarchicalStreamWriter with the formatted writer.protected nu.xom.BuilderDeprecated.As of 1.4.9, overloadcreateBuilder()insteadMethods inherited from class AbstractXmlDriver
xmlFriendlyReplacerMethods inherited from class AbstractDriver
getNameCoder
-
Field Details
-
builder
private final nu.xom.Builder builder
-
-
Constructor Details
-
XomDriver
public XomDriver() -
XomDriver
public XomDriver(nu.xom.Builder builder) Deprecated.As of 1.4.9, useXomDriver()and overloadcreateBuilder()instead -
XomDriver
- Since:
- 1.4
-
XomDriver
Deprecated.As of 1.4.9, useXomDriver(NameCoder)and overloadcreateBuilder()instead- Since:
- 1.4
-
XomDriver
Deprecated.As of 1.4, useXomDriver(NameCoder)instead- Since:
- 1.2
-
XomDriver
Deprecated.As of 1.4, useXomDriver(NameCoder)and overloadcreateBuilder()instead- Since:
- 1.2
-
-
Method Details
-
getBuilder
protected nu.xom.Builder getBuilder()Deprecated.As of 1.4.9, overloadcreateBuilder()instead -
createBuilder
protected nu.xom.Builder createBuilder()Create the Builder instance. A XOM builder is a wrapper around aXMLReaderinstance 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.- Returns:
- the new builder
- Since:
- 1.4.9
-
createReader
Description copied from interface:HierarchicalStreamDriverCreate the HierarchicalStreamReader with the stream parser reading from the IO reader.- Parameters:
text- theReaderwith the data to parse- Returns:
- the HierarchicalStreamReader
-
createReader
Description copied from interface:HierarchicalStreamDriverCreate the HierarchicalStreamReader with the stream parser reading from the input stream.- Parameters:
in- theInputStreamwith the data to parse
-
createReader
Description copied from class:AbstractDriverCreate the HierarchicalStreamReader with the stream parser reading from a URL. Depending on the parser implementation, some might take the URL as SystemId to resolve additional references.- Specified by:
createReaderin interfaceHierarchicalStreamDriver- Overrides:
createReaderin classAbstractDriver- Parameters:
in- theURLdefining the location with the data to parse- Returns:
- the HierarchicalStreamReader
-
createReader
Description copied from class:AbstractDriverCreate the HierarchicalStreamReader with the stream parser reading from a File. Depending on the parser implementation, some might take the file path as SystemId to resolve additional references.- Specified by:
createReaderin interfaceHierarchicalStreamDriver- Overrides:
createReaderin classAbstractDriver- Parameters:
in- theURLdefining the location with the data to parse- Returns:
- the HierarchicalStreamReader
-
createWriter
Description copied from interface:HierarchicalStreamDriverCreate the HierarchicalStreamWriter with the formatted writer.- Parameters:
out- theWriterto receive the formatted data- Returns:
- the HierarchicalStreamWriter
-
createWriter
Description copied from interface:HierarchicalStreamDriverCreate the HierarchicalStreamWriter with the formatted writer.- Parameters:
out- theOutputStreamto receive the formatted data- Returns:
- the HierarchicalStreamWriter
-
XomDriver(NameCoder)instead