Package com.thoughtworks.xstream.io
Interface HierarchicalStreamDriver
-
- All Known Implementing Classes:
AbstractDriver,AbstractXmlDriver,AbstractXppDomDriver,AbstractXppDriver,BEAStaxDriver,BinaryStreamDriver,Dom4JDriver,DomDriver,JDom2Driver,JDomDriver,JettisonMappedXmlDriver,JsonHierarchicalStreamDriver,KXml2DomDriver,KXml2Driver,SjsxpDriver,StandardStaxDriver,StaxDriver,WstxDriver,XomDriver,Xpp3DomDriver,Xpp3Driver,XppDomDriver,XppDriver
public interface HierarchicalStreamDriverProvides implementation of stream parsers and writers to XStream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HierarchicalStreamReadercreateReader(java.io.File in)Create the HierarchicalStreamReader with the stream parser reading from a File.HierarchicalStreamReadercreateReader(java.io.InputStream in)Create the HierarchicalStreamReader with the stream parser reading from the input stream.HierarchicalStreamReadercreateReader(java.io.Reader in)Create the HierarchicalStreamReader with the stream parser reading from the IO reader.HierarchicalStreamReadercreateReader(java.net.URL in)Create the HierarchicalStreamReader with the stream parser reading from a URL.HierarchicalStreamWritercreateWriter(java.io.OutputStream out)Create the HierarchicalStreamWriter with the formatted writer.HierarchicalStreamWritercreateWriter(java.io.Writer out)Create the HierarchicalStreamWriter with the formatted writer.
-
-
-
Method Detail
-
createReader
HierarchicalStreamReader createReader(java.io.Reader in)
Create the HierarchicalStreamReader with the stream parser reading from the IO reader.- Parameters:
in- theReaderwith the data to parse- Returns:
- the HierarchicalStreamReader
-
createReader
HierarchicalStreamReader createReader(java.io.InputStream in)
Create the HierarchicalStreamReader with the stream parser reading from the input stream.- Parameters:
in- theInputStreamwith the data to parse- Since:
- 1.1.3
-
createReader
HierarchicalStreamReader createReader(java.net.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- theURLdefining the location with the data to parse- Returns:
- the HierarchicalStreamReader
- Since:
- 1.4
-
createReader
HierarchicalStreamReader createReader(java.io.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- theURLdefining the location with the data to parse- Returns:
- the HierarchicalStreamReader
- Since:
- 1.4
-
createWriter
HierarchicalStreamWriter createWriter(java.io.Writer out)
Create the HierarchicalStreamWriter with the formatted writer.- Parameters:
out- theWriterto receive the formatted data- Returns:
- the HierarchicalStreamWriter
-
createWriter
HierarchicalStreamWriter createWriter(java.io.OutputStream out)
Create the HierarchicalStreamWriter with the formatted writer.- Parameters:
out- theOutputStreamto receive the formatted data- Returns:
- the HierarchicalStreamWriter
- Since:
- 1.1.3
-
-