Package com.thoughtworks.xstream.io.copy
Class HierarchicalStreamCopier
java.lang.Object
com.thoughtworks.xstream.io.copy.HierarchicalStreamCopier
Tool for copying the contents of one HierarichalStreamReader to a HierarichalStreamWriter.
This is useful for transforming the output of one format to another (e.g. binary to XML) without needing to know details about the classes and avoiding the overhead of serialization.
Example
HierarchicalStreamReader reader = new BinaryStreamReader(someBinaryInput); HierarchicalStreamWriter writer = new PrettyPrintWriter(someXmlOutput); HierarchicalStreamCopier copier = new HierarchicalStreamCopier(); copier.copy(reader, writer);
- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(HierarchicalStreamReader source, HierarchicalStreamWriter destination)
-
Constructor Details
-
HierarchicalStreamCopier
public HierarchicalStreamCopier()
-
-
Method Details
-
copy
-