Top Description Inners Fields Constructors Methods
com.thoughtworks.xstream.io.binary

pack-priv Class ReaderDepthState

extends Object
Class Inheritance
Imports
java.util.List, .ArrayList, .Iterator, .Collections

Maintains the state of a pull reader at various states in the document depth. Used by the BinaryStreamReader
Author
Joe Walnes
Since
1.2

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private ReaderDepthState.State
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
addAttribute(String name, String value)

public String
public String
getAttribute(int index)

public int
public String
getAttributeName(int index)

public Iterator<E>
public String
public String
public boolean
public void
pop()

public void
push()

public void
setHasMoreChildren(boolean hasMoreChildren)

public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentback to summary
private ReaderDepthState.State current
EMPTY_STRINGback to summary
private static final String EMPTY_STRING

Constructor Detail

ReaderDepthStateback to summary
pack-priv ReaderDepthState()

Method Detail

addAttributeback to summary
public void addAttribute(String name, String value)
getAttributeback to summary
public String getAttribute(String name)
getAttributeback to summary
public String getAttribute(int index)
getAttributeCountback to summary
public int getAttributeCount()
getAttributeNameback to summary
public String getAttributeName(int index)
getAttributeNamesback to summary
public Iterator<E> getAttributeNames()
getNameback to summary
public String getName()
getValueback to summary
public String getValue()
hasMoreChildrenback to summary
public boolean hasMoreChildren()
popback to summary
public void pop()
pushback to summary
public void push()
setHasMoreChildrenback to summary
public void setHasMoreChildren(boolean hasMoreChildren)
setNameback to summary
public void setName(String name)
setValueback to summary
public void setValue(String value)
com.thoughtworks.xstream.io.binary back to summary

private Class ReaderDepthState.Attribute

extends Object
Class Inheritance
  • java.lang.Object
  • com.thoughtworks.xstream.io.binary.ReaderDepthState.Attribute

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
pack-priv String name
valueback to summary
pack-priv String value

Constructor Detail

Attributeback to summary
private Attribute()
com.thoughtworks.xstream.io.binary back to summary

private Class ReaderDepthState.State

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv List<E>
pack-priv boolean
pack-priv String
pack-priv ReaderDepthState.State
pack-priv String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributesback to summary
pack-priv List<E> attributes
hasMoreChildrenback to summary
pack-priv boolean hasMoreChildren
nameback to summary
pack-priv String name
parentback to summary
pack-priv ReaderDepthState.State parent
valueback to summary
pack-priv String value

Constructor Detail

Stateback to summary
private State()