| Access | Constructor and Description |
|---|---|
| public | CharactersImpl(final String data, final int eventType, final Location location)
Standard constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getData()
Implements javax. |
| public boolean | isCData()
Implements javax. |
| public boolean | isIgnorableWhiteSpace()
Implements javax. |
| public boolean | isWhiteSpace()
Implements javax. |
| public void | writeAsEncodedUnicode(Writer
The writer that will output the data writer)Implements javax. |
| fData | back to summary |
|---|---|
| private final String fData | |
| CharactersImpl | back to summary |
|---|---|
| public CharactersImpl(final String data, final int eventType, final Location location) Standard constructor. | |
| getData | back to summary |
|---|---|
| public String getData() Implements javax. Doc from javax. Get the character data of this event
| |
| isCData | back to summary |
|---|---|
| public boolean isCData() Implements javax. Doc from javax. Returns true if this is a CData section. If this event is CData its event type will be CDATA If javax.xml.stream.isCoalescing is set to true CDATA Sections that are surrounded by non CDATA characters will be reported as a single Characters event. This method will return false in this case.
| |
| isIgnorableWhiteSpace | back to summary |
|---|---|
| public boolean isIgnorableWhiteSpace() Implements javax. Doc from javax. Return true if this is ignorableWhiteSpace. If this event is ignorableWhiteSpace its event type will be SPACE.
| |
| isWhiteSpace | back to summary |
|---|---|
| public boolean isWhiteSpace() Implements javax. Doc from javax. Returns true if this set of Characters is all whitespace. Whitespace inside a document is reported as CHARACTERS. This method allows checking of CHARACTERS events to see if they are composed of only whitespace characters
| |
| 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.
| |