| |
|
| java.lang.Object com.sun.xml.stream.events.DummyEvent com.sun.xml.stream.events.CharacterEvent
CharacterEvent | public class CharacterEvent extends DummyEvent implements Characters(Code) | | Implementation of Character event.
author: Neeraj Bajaj, Sun Microsystems author: K.Venugopal, Sun Microsystems |
CharacterEvent | public CharacterEvent()(Code) | | |
CharacterEvent | public CharacterEvent(String data)(Code) | | Parameters: data - Character Data. |
CharacterEvent | public CharacterEvent(String data, boolean flag)(Code) | | Parameters: data - Character Data. Parameters: flag - true if CData |
CharacterEvent | public CharacterEvent(String data, boolean flag, boolean isIgnorableWhiteSpace)(Code) | | Parameters: data - Character Data. Parameters: flag - true if CData Parameters: isIgnorableWhiteSpace - true if data is ignorable whitespace. |
init | protected void init()(Code) | | |
isCData | public boolean isCData()(Code) | | boolean returns true if the data is CData |
isIgnorableWhiteSpace | public boolean isIgnorableWhiteSpace()(Code) | | Return true if this is ignorableWhiteSpace. If
this event is ignorableWhiteSpace its event type will
be SPACE.
|
isWhiteSpace | public boolean isWhiteSpace()(Code) | | Returns true if this set of Characters
is all whitespace. Whitspace inside a document
is reported as CHARACTERS. This method allows
checking of CHARACTERS events to see if they
are composed of only whitespace characters
|
toString | public String toString()(Code) | | String return the String representation of this event. |
writeAsEncodedUnicode | public void writeAsEncodedUnicode(Writer writer) throws javax.xml.stream.XMLStreamException(Code) | | 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.
Parameters: writer - The writer that will output the data throws: XMLStreamException - if there is a fatal error writing the event |
|
|
|