com.thoughtworks.xstream.io.path
Class PathTrackingWriter
java.lang.Object
com.thoughtworks.xstream.io.WriterWrapper
com.thoughtworks.xstream.io.path.PathTrackingWriter
- All Implemented Interfaces:
- ExtendedHierarchicalStreamWriter, HierarchicalStreamWriter
public class PathTrackingWriter
- extends WriterWrapper
Wrapper for HierarchicalStreamWriter that tracks the path (a subset of XPath) of the current node that is being written.
- Author:
- Joe Walnes
- See Also:
PathTracker
,
Path
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathTrackingWriter
public PathTrackingWriter(HierarchicalStreamWriter writer,
PathTracker pathTracker)
startNode
public void startNode(String name)
- Specified by:
startNode
in interface HierarchicalStreamWriter
- Overrides:
startNode
in class WriterWrapper
startNode
public void startNode(String name,
Class clazz)
- Specified by:
startNode
in interface ExtendedHierarchicalStreamWriter
- Overrides:
startNode
in class WriterWrapper
endNode
public void endNode()
- Specified by:
endNode
in interface HierarchicalStreamWriter
- Overrides:
endNode
in class WriterWrapper
Copyright © 2004-2014 XStream. All Rights Reserved.