Deprecated
as a consequence of ExtendedHierarchicalStreamWriter being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| protected HierarchicalStreamWriter |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAttribute(String key, String value)
Implements com. |
| public void | close()
Implements com. |
| public void | |
| public void | flush()
Implements com. |
| public void | setValue(String text)
Implements com. |
| public void | |
| public void | startNode(String name, Class<T> clazz)
Implements com. |
| public HierarchicalStreamWriter | underlyingWriter()
Implements com. |
| wrapped | back to summary |
|---|---|
| protected HierarchicalStreamWriter wrapped | |
| WriterWrapper | back to summary |
|---|---|
| protected WriterWrapper(HierarchicalStreamWriter wrapped) | |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(String key, String value) Implements com. | |
| close | back to summary |
|---|---|
| public void close() Implements com. Doc from com. Close the writer, if necessary. | |
| endNode | back to summary |
|---|---|
| public void endNode() Implements com. | |
| flush | back to summary |
|---|---|
| public void flush() Implements com. Doc from com. Flush the writer, if necessary. | |
| setValue | back to summary |
|---|---|
| public void setValue(String text) Implements com. Doc from com. Write the value (text content) of the current node. | |
| startNode | back to summary |
|---|---|
| public void startNode(String name) Implements com. | |
| startNode | back to summary |
|---|---|
| public void startNode(String name, Class<T> clazz) Implements com. | |
| underlyingWriter | back to summary |
|---|---|
| public HierarchicalStreamWriter underlyingWriter() Implements com. Doc from com. Return the underlying HierarchicalStreamWriter implementation. If a Converter needs to access methods of a specific HierarchicalStreamWriter implementation that are not defined in the HierarchicalStreamWriter interface, it should call this method before casting. This is because the writer passed to the Converter is often wrapped/decorated by another implementation to provide additional functionality (such as XPath tracking). For example: MySpecificWriter mySpecificWriter = (MySpecificWriter)writer; // INCORRECT! mySpecificWriter.doSomethingSpecific(); MySpecificWriter mySpecificWriter = (MySpecificWriter)writer.underlyingWriter(); // CORRECT! mySpecificWriter.doSomethingSpecific(); Implementations of HierarchicalStreamWriter should return 'this', unless they are a decorator, in which case they should delegate to whatever they are wrapping. | |