Top Description Methods
com.thoughtworks.xstream.io

public Interface HierarchicalStreamDriver

Known Direct Implementers
com.thoughtworks.xstream.io.AbstractDriver
Imports
java.io.File, .InputStream, .OutputStream, .Reader, .Writer, java.net.URL

Provides implementation of stream parsers and writers to XStream.
Authors
Joe Walnes, James Strachan

Method Summary

Modifier and TypeMethod and Description
public HierarchicalStreamReader

Returns:

the HierarchicalStreamReader
createReader
(Reader
the Reader with the data to parse
in
)

Create the HierarchicalStreamReader with the stream parser reading from the IO reader.

public HierarchicalStreamReader
createReader(InputStream
the InputStream with the data to parse
in
)

Create the HierarchicalStreamReader with the stream parser reading from the input stream.

public HierarchicalStreamReader

Returns:

the HierarchicalStreamReader
createReader
(URL
the URL defining the location with the data to parse
in
)

Create the HierarchicalStreamReader with the stream parser reading from a URL.

public HierarchicalStreamReader

Returns:

the HierarchicalStreamReader
createReader
(File
the URL defining the location with the data to parse
in
)

Create the HierarchicalStreamReader with the stream parser reading from a File.

public HierarchicalStreamWriter

Returns:

the HierarchicalStreamWriter
createWriter
(Writer
the Writer to receive the formatted data
out
)

Create the HierarchicalStreamWriter with the formatted writer.

public HierarchicalStreamWriter

Returns:

the HierarchicalStreamWriter
createWriter
(OutputStream
the OutputStream to receive the formatted data
out
)

Create the HierarchicalStreamWriter with the formatted writer.

Method Detail

createReaderback to summary
public HierarchicalStreamReader createReader(Reader in)

Create the HierarchicalStreamReader with the stream parser reading from the IO reader.

Parameters
in:Reader

the Reader with the data to parse

Returns:HierarchicalStreamReader

the HierarchicalStreamReader

createReaderback to summary
public HierarchicalStreamReader createReader(InputStream in)

Create the HierarchicalStreamReader with the stream parser reading from the input stream.

Parameters
in:InputStream

the InputStream with the data to parse

Since
1.1.3
createReaderback to summary
public HierarchicalStreamReader createReader(URL in)

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:URL

the URL defining the location with the data to parse

Returns:HierarchicalStreamReader

the HierarchicalStreamReader

Since
1.4
createReaderback to summary
public HierarchicalStreamReader createReader(File in)

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:File

the URL defining the location with the data to parse

Returns:HierarchicalStreamReader

the HierarchicalStreamReader

Since
1.4
createWriterback to summary
public HierarchicalStreamWriter createWriter(Writer out)

Create the HierarchicalStreamWriter with the formatted writer.

Parameters
out:Writer

the Writer to receive the formatted data

Returns:HierarchicalStreamWriter

the HierarchicalStreamWriter

createWriterback to summary
public HierarchicalStreamWriter createWriter(OutputStream out)

Create the HierarchicalStreamWriter with the formatted writer.

Parameters
out:OutputStream

the OutputStream to receive the formatted data

Returns:HierarchicalStreamWriter

the HierarchicalStreamWriter

Since
1.1.3