Top Description Constructors Methods
com.thoughtworks.xstream.io.copy

public Class HierarchicalStreamCopier

extends Object
Class Inheritance
Imports
com.thoughtworks.xstream.io.HierarchicalStreamReader, .HierarchicalStreamWriter

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);
Author
Joe Walnes
Since
1.2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HierarchicalStreamCopierback to summary
public HierarchicalStreamCopier()

Method Detail

copyback to summary
public void copy(HierarchicalStreamReader source, HierarchicalStreamWriter destination)