Deprecated
as a consequence of ExtendedHierarchicalStreamReader being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| protected HierarchicalStreamReader |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | appendErrors(ErrorWriter
the error writer errorWriter)Implements com. |
| public void | close()
Implements com. |
| public String | getAttribute(String name)
Implements com. |
| public String | getAttribute(int index)
Implements com. |
| public int | getAttributeCount()
Implements com. |
| public String | getAttributeName(int index)
Implements com. |
| public Iterator | getAttributeNames()
Implements com. |
| public String | getNodeName()
Implements com. |
| public String | getValue()
Implements com. |
| public boolean | hasMoreChildren()
Implements com. |
| public void | moveDown()
Implements com. |
| public void | moveUp()
Implements com. |
| public String | peekNextChild()
Implements com. |
| public HierarchicalStreamReader | underlyingReader()
Implements com. |
| wrapped | back to summary |
|---|---|
| protected HierarchicalStreamReader wrapped | |
| ReaderWrapper | back to summary |
|---|---|
| protected ReaderWrapper(HierarchicalStreamReader reader) | |
| appendErrors | back to summary |
|---|---|
| public void appendErrors(ErrorWriter errorWriter) Implements com. Doc from com. If any errors are detected, allow the reader to add any additional information that can aid debugging (such as line numbers, XPath expressions, etc).
| |
| close | back to summary |
|---|---|
| public void close() Implements com. Doc from com. Close the reader, if necessary. | |
| getAttribute | back to summary |
|---|---|
| public String getAttribute(String name) Implements com. Doc from com. Get the value of an attribute of the current node. If no such attribute exists, the method returns null. | |
| getAttribute | back to summary |
|---|---|
| public String getAttribute(int index) Implements com. Doc from com. Get the value of an attribute of the current node, by index. Note, the behavior of this method is dependent on the underlying parser when calling it with a non-existing index. Typically some kind of RuntimeException is thrown. | |
| getAttributeCount | back to summary |
|---|---|
| public int getAttributeCount() Implements com. Doc from com. Number of attributes in current node. | |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName(int index) Implements com. Doc from com. Name of attribute in current node. Note, the behavior of this method is dependent on the underlying parser when calling it with a non-existing index. Typically some kind of RuntimeException is thrown. | |
| getAttributeNames | back to summary |
|---|---|
| public Iterator Implements com. Doc from com. Iterator with the names of the attributes. Note, the iterator is only valid as long as the internal state of the underlying parser is still at the start of the current element. The behavior is undefined if the parser moved on. | |
| getNodeName | back to summary |
|---|---|
| public String getNodeName() Implements com. Doc from com. Get the name of the current node. | |
| getValue | back to summary |
|---|---|
| public String getValue() Implements com. Doc from com. Get the value (text content) of the current node. | |
| hasMoreChildren | back to summary |
|---|---|
| public boolean hasMoreChildren() Implements com. Doc from com. Does the node have any more children remaining that have not yet been read? | |
| moveDown | back to summary |
|---|---|
| public void moveDown() Implements com. Doc from com. Select the current child as current node.
A call to this function must be balanced with a call to | |
| moveUp | back to summary |
|---|---|
| public void moveUp() Implements com. Doc from com. Select the parent node as current node. | |
| peekNextChild | back to summary |
|---|---|
| public String peekNextChild() Implements com. Doc from com. Peek the name of the next child. In situation where | |
| underlyingReader | back to summary |
|---|---|
| public HierarchicalStreamReader underlyingReader() Implements com. Doc from com. Return the underlying HierarchicalStreamReader implementation. If a Converter needs to access methods of a specific HierarchicalStreamReader implementation that are not defined in the HierarchicalStreamReader interface, it should call this method before casting. This is because the reader passed to the Converter is often wrapped/decorated by another implementation to provide additional functionality (such as XPath tracking). For example: MySpecificReader mySpecificReader = (MySpecificReader)reader; // INCORRECT! mySpecificReader.doSomethingSpecific(); MySpecificReader mySpecificReader = (MySpecificReader)reader.underlyingReader(); // CORRECT! mySpecificReader.doSomethingSpecific(); Implementations of HierarchicalStreamReader should return 'this', unless they are a decorator, in which case they should delegate to whatever they are wrapping. | |