public class StartDocumentEvent extends BaseEvent implements javax.xml.stream.events.StartDocument
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
encodingScheme |
protected java.lang.String |
publicId |
protected boolean |
standalone |
protected java.lang.String |
systemId |
protected java.lang.String |
version |
Constructor and Description |
---|
StartDocumentEvent() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected void |
doWriteAsEncodedUnicode(java.io.Writer writer)
Template method to be implemented by sub-classes.
|
boolean |
encodingSet()
Returns true if CharacterEncodingScheme was set in
the encoding declaration of the document
|
java.lang.String |
getCharacterEncodingScheme()
Returns the encoding style of the XML data
|
java.lang.String |
getSystemId()
Returns the system ID of the XML
|
java.lang.String |
getVersion()
Returns the version of XML of this XML stream
|
protected void |
init() |
boolean |
isStandalone()
Returns if this XML is standalone
|
void |
setEncoding(java.lang.String encoding) |
void |
setStandalone(boolean standalone) |
void |
setStandalone(java.lang.String standalone) |
void |
setVersion(java.lang.String version) |
boolean |
standaloneSet()
Returns true if the standalone attribute was set in
the encoding declaration of the document.
|
asCharacters, asEndElement, asStartElement, getCharacterOffset, getColumnNumber, getEventType, getLineNumber, getLocation, getLocationURI, getPublicId, getSchemaType, getSourceName, getTypeAsString, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, recycle, setCharacterOffset, setColumnNumber, setEventType, setLineNumber, setLocationURI, toString, writeAsEncodedUnicode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
protected java.lang.String systemId
protected java.lang.String publicId
protected java.lang.String encodingScheme
protected boolean standalone
protected java.lang.String version
protected void init()
public java.lang.String getSystemId()
javax.xml.stream.Location
getSystemId
in interface javax.xml.stream.events.StartDocument
getSystemId
in interface javax.xml.stream.Location
getSystemId
in class BaseEvent
public java.lang.String getCharacterEncodingScheme()
javax.xml.stream.events.StartDocument
getCharacterEncodingScheme
in interface javax.xml.stream.events.StartDocument
public boolean isStandalone()
javax.xml.stream.events.StartDocument
isStandalone
in interface javax.xml.stream.events.StartDocument
public java.lang.String getVersion()
javax.xml.stream.events.StartDocument
getVersion
in interface javax.xml.stream.events.StartDocument
public void setStandalone(boolean standalone)
public void setStandalone(java.lang.String standalone)
public boolean encodingSet()
javax.xml.stream.events.StartDocument
encodingSet
in interface javax.xml.stream.events.StartDocument
public boolean standaloneSet()
javax.xml.stream.events.StartDocument
standaloneSet
in interface javax.xml.stream.events.StartDocument
public void setEncoding(java.lang.String encoding)
public void setVersion(java.lang.String version)
public void clear()
protected void doWriteAsEncodedUnicode(java.io.Writer writer) throws java.io.IOException
BaseEvent
doWriteAsEncodedUnicode
in class BaseEvent
java.io.IOException