javax.xml.stream.XMLEventReader , Characters, ProcessingInstruction, StartElement, EndElement, StartDocument, EndDocument, EntityReference, EntityDeclaration, NotationDeclaration
| Modifier and Type | Method and Description |
|---|---|
| public Characters | Returns: aCharacters eventReturns this event as Characters, may result in a class cast exception if this event is not Characters. |
| public EndElement | Returns: aEndElement eventReturns this event as an end element event, may result in a class cast exception if this event is not a end element. |
| public StartElement | Returns: aStartElement eventReturns this event as a start element event, may result in a class cast exception if this event is not a start element. |
| public int | |
| public Location | |
| public QName | Returns: the type of the event, null if not availableThis method is provided for implementations to provide optional type information about the associated event. |
| public boolean | Returns: true if the event isAttribute, false otherwiseA utility function to check if this event is an Attribute. |
| public boolean | Returns: true if the event isCharacters, false otherwiseA utility function to check if this event is Characters. |
| public boolean | Returns: true if the event isEndDocument, false otherwiseA utility function to check if this event is an EndDocument. |
| public boolean | Returns: true if the event isEndElement, false otherwiseA utility function to check if this event is a EndElement. |
| public boolean | Returns: true if the event isEntityReference, false otherwiseA utility function to check if this event is an EntityReference. |
| public boolean | Returns: true if the event isNamespace, false otherwiseA utility function to check if this event is a Namespace. |
| public boolean | Returns: true if the event isProcessingInstruction, false otherwiseA utility function to check if this event is a ProcessingInstruction. |
| public boolean | Returns: true if the event isStartDocument, false otherwiseA utility function to check if this event is a StartDocument. |
| public boolean | Returns: true if the event isStartElement, false otherwiseA utility function to check if this event is a StartElement. |
| public void | writeAsEncodedUnicode(Writer
The writer that will output the data writer)This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters. |
| asCharacters | back to summary |
|---|---|
| public Characters asCharacters() Returns this event as Characters, may result in a class cast exception if this event is not Characters.
| |
| asEndElement | back to summary |
|---|---|
| public EndElement asEndElement() Returns this event as an end element event, may result in a class cast exception if this event is not a end element.
| |
| asStartElement | back to summary |
|---|---|
| public StartElement asStartElement() Returns this event as a start element event, may result in a class cast exception if this event is not a start element.
| |
| getEventType | back to summary |
|---|---|
| public int getEventType() Returns an integer code for this event.
| |
| getLocation | back to summary |
|---|---|
| public Location getLocation() Return the location of this event. The Location returned from this method is non-volatile and will retain its information.
| |
| getSchemaType | back to summary |
|---|---|
| public QName getSchemaType() This method is provided for implementations to provide optional type information about the associated event. It is optional and will return null if no information is available.
| |
| isAttribute | back to summary |
|---|---|
| public boolean isAttribute() A utility function to check if this event is an Attribute.
| |
| isCharacters | back to summary |
|---|---|
| public boolean isCharacters() A utility function to check if this event is Characters.
| |
| isEndDocument | back to summary |
|---|---|
| public boolean isEndDocument() A utility function to check if this event is an EndDocument.
| |
| isEndElement | back to summary |
|---|---|
| public boolean isEndElement() A utility function to check if this event is a EndElement.
| |
| isEntityReference | back to summary |
|---|---|
| public boolean isEntityReference() A utility function to check if this event is an EntityReference.
| |
| isNamespace | back to summary |
|---|---|
| public boolean isNamespace() A utility function to check if this event is a Namespace.
| |
| isProcessingInstruction | back to summary |
|---|---|
| public boolean isProcessingInstruction() A utility function to check if this event is a ProcessingInstruction.
| |
| isStartDocument | back to summary |
|---|---|
| public boolean isStartDocument() A utility function to check if this event is a StartDocument.
| |
| isStartElement | back to summary |
|---|---|
| public boolean isStartElement() A utility function to check if this event is a StartElement.
| |
| writeAsEncodedUnicode | back to summary |
|---|---|
| public void writeAsEncodedUnicode(Writer writer) throws XMLStreamException 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.
| |