public abstract class BaseEvent
extends java.lang.Object
implements javax.xml.stream.events.XMLEvent, javax.xml.stream.Location
asCharacters
public javax.xml.stream.events.Characters asCharacters()
- asCharacters in interface javax.xml.stream.events.XMLEvent
asEndElement
public javax.xml.stream.events.EndElement asEndElement()
- asEndElement in interface javax.xml.stream.events.XMLEvent
asStartElement
public javax.xml.stream.events.StartElement asStartElement()
- asStartElement in interface javax.xml.stream.events.XMLEvent
doWriteAsEncodedUnicode
protected abstract void doWriteAsEncodedUnicode(Writer writer)
throws IOException,
javax.xml.stream.XMLStreamException
Template method to be implemented by sub-classes.
getCharacterOffset
public int getCharacterOffset()
- getCharacterOffset in interface javax.xml.stream.Location
getColumnNumber
public int getColumnNumber()
- getColumnNumber in interface javax.xml.stream.Location
getEventType
public int getEventType()
- getEventType in interface javax.xml.stream.events.XMLEvent
getLineNumber
public int getLineNumber()
- getLineNumber in interface javax.xml.stream.Location
getLocation
public javax.xml.stream.Location getLocation()
- getLocation in interface javax.xml.stream.events.XMLEvent
getLocationURI
public String getLocationURI()
getPublicId
public String getPublicId()
- getPublicId in interface javax.xml.stream.Location
getSchemaType
public javax.xml.namespace.QName getSchemaType()
- getSchemaType in interface javax.xml.stream.events.XMLEvent
getSourceName
public String getSourceName()
getSystemId
public String getSystemId()
- getSystemId in interface javax.xml.stream.Location
getTypeAsString
public String getTypeAsString()
isAttribute
public boolean isAttribute()
- isAttribute in interface javax.xml.stream.events.XMLEvent
isCharacters
public boolean isCharacters()
- isCharacters in interface javax.xml.stream.events.XMLEvent
isEndDocument
public boolean isEndDocument()
- isEndDocument in interface javax.xml.stream.events.XMLEvent
isEndElement
public boolean isEndElement()
- isEndElement in interface javax.xml.stream.events.XMLEvent
isEntityReference
public boolean isEntityReference()
- isEntityReference in interface javax.xml.stream.events.XMLEvent
isNamespace
public boolean isNamespace()
- isNamespace in interface javax.xml.stream.events.XMLEvent
isProcessingInstruction
public boolean isProcessingInstruction()
- isProcessingInstruction in interface javax.xml.stream.events.XMLEvent
isStartDocument
public boolean isStartDocument()
- isStartDocument in interface javax.xml.stream.events.XMLEvent
isStartElement
public boolean isStartElement()
- isStartElement in interface javax.xml.stream.events.XMLEvent
recycle
public void recycle()
setCharacterOffset
public void setCharacterOffset(int c)
setColumnNumber
public void setColumnNumber(int col)
setEventType
protected void setEventType(int type)
setLineNumber
public void setLineNumber(int line)
setLocationURI
public void setLocationURI(String uri)
toString
public String toString()
writeAsEncodedUnicode
public final void writeAsEncodedUnicode(Writer writer)
throws javax.xml.stream.XMLStreamException
- writeAsEncodedUnicode in interface javax.xml.stream.events.XMLEvent