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

public Class PathTrackingWriter

extends WriterWrapper
Class Inheritance
Imports
com.thoughtworks.xstream.io.AbstractWriter, .HierarchicalStreamWriter, .WriterWrapper

Deprecated

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

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

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
Inherited from com.thoughtworks.xstream.io.WriterWrapper:
addAttributecloseflushsetValueunderlyingWriter

Field Detail

isNameEncodingback to summary
private final boolean isNameEncoding
pathTrackerback to summary
private final PathTracker pathTracker

Constructor Detail

PathTrackingWriterback to summary
public PathTrackingWriter(HierarchicalStreamWriter writer, PathTracker pathTracker)

Method Detail

endNodeback to summary
public void endNode()

Overrides com.thoughtworks.xstream.io.WriterWrapper.endNode.

Implements com.thoughtworks.xstream.io.HierarchicalStreamWriter.endNode.

startNodeback to summary
public void startNode(String name)

Overrides com.thoughtworks.xstream.io.WriterWrapper.startNode.

Implements com.thoughtworks.xstream.io.HierarchicalStreamWriter.startNode.

startNodeback to summary
public void startNode(String name, Class<T> clazz)

Overrides com.thoughtworks.xstream.io.WriterWrapper.startNode.

Implements com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter.startNode.