|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.xstream.io.AbstractDriver
com.thoughtworks.xstream.io.binary.BinaryStreamDriver
public class BinaryStreamDriver
HierarchicalStreamDriver for binary input and output. The driver uses an optimized binary
format to store an object graph. The format is not as compact as Java serialization, but a
lot more than typical text-based formats like XML. However, due to its nature it cannot use a
Reader for input or a Writer for output.
| Constructor Summary | |
|---|---|
BinaryStreamDriver()
|
|
| Method Summary | |
|---|---|
HierarchicalStreamReader |
createReader(InputStream in)
Create the HierarchicalStreamReader with the stream parser reading from the input stream. |
HierarchicalStreamReader |
createReader(Reader in)
Create the HierarchicalStreamReader with the stream parser reading from the IO reader. |
HierarchicalStreamWriter |
createWriter(OutputStream out)
Create the HierarchicalStreamWriter with the formatted writer. |
HierarchicalStreamWriter |
createWriter(Writer out)
Create the HierarchicalStreamWriter with the formatted writer. |
| Methods inherited from class com.thoughtworks.xstream.io.AbstractDriver |
|---|
createReader, createReader, getNameCoder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryStreamDriver()
| Method Detail |
|---|
public HierarchicalStreamReader createReader(Reader in)
HierarchicalStreamDriver
in - the Reader with the data to parse
UnsupportedOperationException - if calledpublic HierarchicalStreamReader createReader(InputStream in)
HierarchicalStreamDriver
in - the InputStream with the data to parsepublic HierarchicalStreamWriter createWriter(Writer out)
HierarchicalStreamDriver
out - the Writer to receive the formatted data
UnsupportedOperationException - if calledpublic HierarchicalStreamWriter createWriter(OutputStream out)
HierarchicalStreamDriver
out - the OutputStream to receive the formatted data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||