public class

PathTrackingReader

extends ReaderWrapper
java.lang.Object
   ↳ com.thoughtworks.xstream.io.ReaderWrapper
     ↳ com.thoughtworks.xstream.io.path.PathTrackingReader

Class Overview

Wrapper for HierarchicalStreamReader that tracks the path (a subset of XPath) of the current node that is being read.

See Also

Summary

[Expand]
Inherited Fields
From class com.thoughtworks.xstream.io.ReaderWrapper
Public Constructors
PathTrackingReader(HierarchicalStreamReader reader, PathTracker pathTracker)
Public Methods
void appendErrors(ErrorWriter errorWriter)
If any errors are detected, allow the reader to add any additional information that can aid debugging (such as line numbers, XPath expressions, etc).
void moveDown()
Select the current child as current node.
void moveUp()
Select the parent node as current node.
[Expand]
Inherited Methods
From class com.thoughtworks.xstream.io.ReaderWrapper
From class java.lang.Object
From interface com.thoughtworks.xstream.io.HierarchicalStreamReader

Public Constructors

public PathTrackingReader (HierarchicalStreamReader reader, PathTracker pathTracker)

Public Methods

public void appendErrors (ErrorWriter errorWriter)

If any errors are detected, allow the reader to add any additional information that can aid debugging (such as line numbers, XPath expressions, etc).

public void moveDown ()

Select the current child as current node. A call to this function must be balanced with a call to moveUp().

public void moveUp ()

Select the parent node as current node.