| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| pack-priv boolean | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | CharactersEventImpl(Location loc, String content, boolean cdata)
Constructor for regular unspecified (but non-CDATA) characters event type, which may or may not be all whitespace, but is not specified as ignorable white space. |
| private | CharactersEventImpl(Location loc, String content, boolean cdata, boolean allWS, boolean ignorableWS)
Constructor for creating white space characters... |
| Modifier and Type | Method and Description |
|---|---|
| public Characters | asCharacters()
Overrides org. Implements javax. |
| public static final CharactersEventImpl | |
| public static final CharactersEventImpl | |
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract org. |
| public String | getData()
Implements javax. |
| public int | getEventType()
Implements abstract org. Implements javax. |
| public int | hashCode()
Implements abstract org. |
| public boolean | isCData()
Implements javax. |
| public boolean | isCharacters()
Overrides org. Implements javax. |
| public boolean | isIgnorableWhiteSpace()
Implements javax. |
| public boolean | isWhiteSpace()
Implements javax. |
| public void | |
| public void | writeAsEncodedUnicode(Writer
The writer that will output the data w)Implements abstract org. Implements javax. |
| protected static void | |
| public void | writeUsing(XMLStreamWriter2 w)
Implements abstract org. Implements org. |
| mContent | back to summary |
|---|---|
| pack-priv final String mContent | |
| mIgnorableWS | back to summary |
|---|---|
| pack-priv final boolean mIgnorableWS | |
| mIsCData | back to summary |
|---|---|
| pack-priv final boolean mIsCData | |
| mIsWhitespace | back to summary |
|---|---|
| pack-priv boolean mIsWhitespace | |
| mWhitespaceChecked | back to summary |
|---|---|
| pack-priv boolean mWhitespaceChecked | |
| CharactersEventImpl | back to summary |
|---|---|
| public CharactersEventImpl(Location loc, String content, boolean cdata) Constructor for regular unspecified (but non-CDATA) characters event type, which may or may not be all whitespace, but is not specified as ignorable white space. | |
| CharactersEventImpl | back to summary |
|---|---|
| private CharactersEventImpl(Location loc, String content, boolean cdata, boolean allWS, boolean ignorableWS) Constructor for creating white space characters... | |
| asCharacters | back to summary |
|---|---|
| public Characters asCharacters() Overrides org. Implements javax. Doc from javax. Returns this event as Characters, may result in a class cast exception if this event is not Characters.
| |
| createIgnorableWS | back to summary |
|---|---|
| public static final CharactersEventImpl createIgnorableWS(Location loc, String content) | |
| createNonIgnorableWS | back to summary |
|---|---|
| public static final CharactersEventImpl createNonIgnorableWS(Location loc, String content) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract org. Doc from org. Declared abstract to force redefinition by sub-classes
| |
| getData | back to summary |
|---|---|
| public String getData() Implements javax. Doc from javax. Get the character data of this event | |
| getEventType | back to summary |
|---|---|
| public int getEventType() Implements abstract org. Implements javax. Doc from javax. Returns an integer code for this event.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract org. Doc from org. Declared abstract to force redefinition by sub-classes
| |
| 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.
| |
| isCharacters | back to summary |
|---|---|
| public boolean isCharacters() Overrides org. Implements javax. Doc from javax. A utility function to check if this event is Characters.
| |
| 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
| |
| setWhitespaceStatus | back to summary |
|---|---|
| public void setWhitespaceStatus(boolean status) | |
| writeAsEncodedUnicode | back to summary |
|---|---|
| public void writeAsEncodedUnicode(Writer w) throws XMLStreamException Implements abstract org. 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.
| |
| writeEscapedXMLText | back to summary |
|---|---|
| protected static void writeEscapedXMLText(Writer w, String text) throws IOException | |
| writeUsing | back to summary |
|---|---|
| public void writeUsing(XMLStreamWriter2 w) throws XMLStreamException Implements abstract org. Implements org.
| |