Package com.thoughtworks.xstream.io
Interface HierarchicalStreamDriver
- All Known Implementing Classes:
AbstractDriver
,AbstractXmlDriver
,AbstractXppDomDriver
,AbstractXppDriver
,BinaryStreamDriver
,Dom4JDriver
,DomDriver
,JDom2Driver
,JDomDriver
,JsonHierarchicalStreamDriver
,MXParserDomDriver
,MXParserDriver
,SjsxpDriver
,StandardStaxDriver
,StaxDriver
,XppDomDriver
,XppDriver
public interface HierarchicalStreamDriver
Provides implementation of stream parsers and writers to XStream.
-
Method Summary
Modifier and TypeMethodDescriptioncreateReader
(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 in) 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.
-
Method Details
-
createReader
Create the HierarchicalStreamReader with the stream parser reading from the IO reader.- Parameters:
in
- theReader
with the data to parse- Returns:
- the HierarchicalStreamReader
-
createReader
Create the HierarchicalStreamReader with the stream parser reading from the input stream.- Parameters:
in
- theInputStream
with the data to parse- Since:
- 1.1.3
-
createReader
Create 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.- Parameters:
in
- theURL
defining the location with the data to parse- Returns:
- the HierarchicalStreamReader
- Since:
- 1.4
-
createReader
Create 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.- Parameters:
in
- theURL
defining the location with the data to parse- Returns:
- the HierarchicalStreamReader
- Since:
- 1.4
-
createWriter
Create the HierarchicalStreamWriter with the formatted writer.- Parameters:
out
- theWriter
to receive the formatted data- Returns:
- the HierarchicalStreamWriter
-
createWriter
Create the HierarchicalStreamWriter with the formatted writer.- Parameters:
out
- theOutputStream
to receive the formatted data- Returns:
- the HierarchicalStreamWriter
- Since:
- 1.1.3
-