| Modifier and Type | Field and Description |
|---|---|
| private final String | fText
The text of the comment. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getText()
Implements javax. |
| public void | writeAsEncodedUnicode(Writer
The writer that will output the data writer)Implements javax. |
| fText | back to summary |
|---|---|
| private final String fText The text of the comment. Will be the empty string if there's no body text in the comment. | |
| CommentImpl | back to summary |
|---|---|
| public CommentImpl(final String text, final Location location) | |
| getText | back to summary |
|---|---|
| public String getText() Implements javax. Doc from javax. Return the string data of the comment, returns empty string if it does not exist.
| |
| writeAsEncodedUnicode | back to summary |
|---|---|
| public void writeAsEncodedUnicode(Writer writer) throws XMLStreamException Implements javax. Doc from javax. This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters. No indentation or whitespace should be outputted. Any user defined event type SHALL have this method called when being written to on an output stream. Built in Event types MUST implement this method, but implementations MAY choose not call these methods for optimizations reasons when writing out built in Events to an output stream. The output generated MUST be equivalent in terms of the infoset expressed.
| |