Top Description Fields Constructors Methods
com.thoughtworks.xstream.io.path

public Class PathTrackingReader

extends ReaderWrapper
Class Inheritance
Imports
com.thoughtworks.xstream.converters.ErrorWriter, com.thoughtworks.xstream.io.HierarchicalStreamReader, .ReaderWrapper

Deprecated

as a consequence of ReaderWrapper being deprecated. See corresponding docs for further information.

Wrapper for HierarchicalStreamReader that tracks the path (a subset of XPath) of the current node that is being read.
Author
Joe Walnes
See Also
PathTracker, Path

Field Summary

Modifier and TypeField and Description
private final PathTracker
Inherited from com.thoughtworks.xstream.io.ReaderWrapper:
wrapped

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
appendErrors(ErrorWriter
the error writer
errorWriter
)

Overrides com.thoughtworks.xstream.io.ReaderWrapper.appendErrors.

Implements com.thoughtworks.xstream.io.HierarchicalStreamReader.appendErrors.

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
public void
Inherited from com.thoughtworks.xstream.io.ReaderWrapper:
closegetAttributegetAttributegetAttributeCountgetAttributeNamegetAttributeNamesgetNodeNamegetValuehasMoreChildrenpeekNextChildunderlyingReader

Field Detail

pathTrackerback to summary
private final PathTracker pathTracker

Constructor Detail

PathTrackingReaderback to summary
public PathTrackingReader(HierarchicalStreamReader reader, PathTracker pathTracker)

Method Detail

appendErrorsback to summary
public void appendErrors(ErrorWriter errorWriter)

Overrides com.thoughtworks.xstream.io.ReaderWrapper.appendErrors.

Implements com.thoughtworks.xstream.io.HierarchicalStreamReader.appendErrors.

Doc from com.thoughtworks.xstream.io.HierarchicalStreamReader.appendErrors.

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

Parameters
errorWriter:ErrorWriter

Doc from com.thoughtworks.xstream.converters.ErrorReporter.appendErrors.

the error writer

moveDownback to summary
public void moveDown()

Overrides com.thoughtworks.xstream.io.ReaderWrapper.moveDown.

Implements com.thoughtworks.xstream.io.HierarchicalStreamReader.moveDown.

Doc from com.thoughtworks.xstream.io.HierarchicalStreamReader.moveDown.

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

moveUpback to summary
public void moveUp()

Overrides com.thoughtworks.xstream.io.ReaderWrapper.moveUp.

Implements com.thoughtworks.xstream.io.HierarchicalStreamReader.moveUp.

Doc from com.thoughtworks.xstream.io.HierarchicalStreamReader.moveUp.

Select the parent node as current node.