|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.xml.stream.events.DummyEvent
public abstract class DummyEvent
DummyEvent is an abstract class. It provides functionality for most of the function of XMLEvent.
| Field Summary | |
|---|---|
protected javax.xml.stream.Location |
fLocation
|
| Fields inherited from interface javax.xml.stream.XMLStreamConstants |
|---|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
| Constructor Summary | |
|---|---|
DummyEvent()
|
|
DummyEvent(int i)
|
|
| Method Summary | |
|---|---|
javax.xml.stream.events.Characters |
asCharacters()
Returns this event as Characters, may result in a class cast exception if this event is not Characters. |
javax.xml.stream.events.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. |
javax.xml.stream.events.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. |
protected void |
charEncode(java.io.Writer writer,
java.lang.String data)
Helper method to escape < > & for characters event and quotes, lt and amps for Entity |
int |
getEventType()
|
javax.xml.stream.Location |
getLocation()
|
javax.xml.namespace.QName |
getSchemaType()
This method is provided for implementations to provide optional type information about the associated event. |
boolean |
isAttribute()
A utility function to check if this event is an Attribute. |
boolean |
isCharacterData()
|
boolean |
isCharacters()
A utility function to check if this event is Characters. |
boolean |
isEndDocument()
|
boolean |
isEndElement()
|
boolean |
isEntityReference()
|
boolean |
isNamespace()
A utility function to check if this event is a Namespace. |
boolean |
isProcessingInstruction()
|
boolean |
isStartDocument()
|
boolean |
isStartElement()
|
protected void |
setEventType(int eventType)
|
void |
writeAsEncodedUnicode(java.io.Writer writer)
This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters. |
protected abstract void |
writeAsEncodedUnicodeEx(java.io.Writer writer)
Helper method in order to expose IOException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.xml.stream.Location fLocation
| Constructor Detail |
|---|
public DummyEvent()
public DummyEvent(int i)
| Method Detail |
|---|
public int getEventType()
getEventType in interface javax.xml.stream.events.XMLEventprotected void setEventType(int eventType)
public boolean isStartElement()
isStartElement in interface javax.xml.stream.events.XMLEventpublic boolean isEndElement()
isEndElement in interface javax.xml.stream.events.XMLEventpublic boolean isEntityReference()
isEntityReference in interface javax.xml.stream.events.XMLEventpublic boolean isProcessingInstruction()
isProcessingInstruction in interface javax.xml.stream.events.XMLEventpublic boolean isCharacterData()
public boolean isStartDocument()
isStartDocument in interface javax.xml.stream.events.XMLEventpublic boolean isEndDocument()
isEndDocument in interface javax.xml.stream.events.XMLEventpublic javax.xml.stream.Location getLocation()
getLocation in interface javax.xml.stream.events.XMLEventpublic javax.xml.stream.events.Characters asCharacters()
asCharacters in interface javax.xml.stream.events.XMLEventpublic javax.xml.stream.events.EndElement asEndElement()
asEndElement in interface javax.xml.stream.events.XMLEventpublic javax.xml.stream.events.StartElement asStartElement()
asStartElement in interface javax.xml.stream.events.XMLEventpublic javax.xml.namespace.QName getSchemaType()
getSchemaType in interface javax.xml.stream.events.XMLEventpublic boolean isAttribute()
isAttribute in interface javax.xml.stream.events.XMLEventAttributepublic boolean isCharacters()
isCharacters in interface javax.xml.stream.events.XMLEventCharacterspublic boolean isNamespace()
isNamespace in interface javax.xml.stream.events.XMLEventNamespace
public void writeAsEncodedUnicode(java.io.Writer writer)
throws javax.xml.stream.XMLStreamException
writeAsEncodedUnicode in interface javax.xml.stream.events.XMLEventwriter - The writer that will output the data
javax.xml.stream.XMLStreamException - if there is a fatal error writing the event
protected abstract void writeAsEncodedUnicodeEx(java.io.Writer writer)
throws java.io.IOException,
javax.xml.stream.XMLStreamException
writer - The writer that will output the data
javax.xml.stream.XMLStreamException - if there is a fatal error writing the event
java.io.IOException - if there is an IO error
protected void charEncode(java.io.Writer writer,
java.lang.String data)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||