public class HierarchicalStreamCopier
extends java.lang.Object
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.
HierarchicalStreamReader reader = new BinaryStreamReader(someBinaryInput); HierarchicalStreamWriter writer = new PrettyPrintWriter(someXmlOutput); HierarchicalStreamCopier copier = new HierarchicalStreamCopier(); copier.copy(reader, writer);
Constructor and Description |
---|
HierarchicalStreamCopier() |
Modifier and Type | Method and Description |
---|---|
void |
copy(HierarchicalStreamReader source,
HierarchicalStreamWriter destination) |
public void copy(HierarchicalStreamReader source, HierarchicalStreamWriter destination)
Copyright © 2004–2022 XStream. All rights reserved.