Deprecated
as a consequence of ExtendedHierarchicalStreamReader being deprecated. See corresponding docs for further information.
HierarchicalStreamReader should rather be derived from this class then implementing
the interface directly.
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | AbstractReader(NameCoder
the name coder used to read names from the incoming format nameCoder)Creates an AbstractReader with a provided |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the original namethe name in the target format name)Decode an attribute name from the target format. |
| public String | Returns: the original namethe name in the target format name)Decode a node name from the target format. |
| protected String | Returns: the name in the target formatthe original name name)Encode the attribute name again into the name of the target format. |
| protected String | Returns: the name in the target formatthe original name name)Encode the node name again into the name of the target format. |
| public String | peekNextChild()
Implements com. |
| public HierarchicalStreamReader | underlyingReader()
Implements com. |
| nameCoder | back to summary |
|---|---|
| private NameCoder nameCoder | |
| AbstractReader | back to summary |
|---|---|
| protected AbstractReader() Creates an AbstractReader with a NameCoder that does nothing.
| |
| AbstractReader | back to summary |
|---|---|
| protected AbstractReader(NameCoder nameCoder) Creates an AbstractReader with a provided
| |
| decodeAttribute | back to summary |
|---|---|
| public String decodeAttribute(String name) Decode an attribute name from the target format. | |
| decodeNode | back to summary |
|---|---|
| public String decodeNode(String name) Decode a node name from the target format. | |
| encodeAttribute | back to summary |
|---|---|
| protected String encodeAttribute(String name) Encode the attribute name again into the name of the target format. Internally used. | |
| encodeNode | back to summary |
|---|---|
| protected String encodeNode(String name) Encode the node name again into the name of the target format. Internally used. | |
| 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. | |