Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.thoughtworks.xstream.io.copy
Class HierarchicalStreamCopier

    java.lang.Object
      com.thoughtworks.xstream.io.copy.HierarchicalStreamCopier

    public class HierarchicalStreamCopier

extends Object

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
Author:
  Joe Walnes

Constructor Summary
`HierarchicalStreamCopier()`

Method Summary
`void` | `copy(HierarchicalStreamReader source, HierarchicalStreamWriter destination)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### HierarchicalStreamCopier

    public HierarchicalStreamCopier()

Method Detail

### copy

    public void copy(HierarchicalStreamReader source,
                     HierarchicalStreamWriter destination)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2008 XStream. All Rights Reserved.