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, writeAsEncodedUnicodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodeprotected 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.LocationgetSystemId in interface javax.xml.stream.events.StartDocumentgetSystemId in interface javax.xml.stream.LocationgetSystemId in class BaseEventpublic java.lang.String getCharacterEncodingScheme()
javax.xml.stream.events.StartDocumentgetCharacterEncodingScheme in interface javax.xml.stream.events.StartDocumentpublic boolean isStandalone()
javax.xml.stream.events.StartDocumentisStandalone in interface javax.xml.stream.events.StartDocumentpublic java.lang.String getVersion()
javax.xml.stream.events.StartDocumentgetVersion in interface javax.xml.stream.events.StartDocumentpublic void setStandalone(boolean standalone)
public void setStandalone(java.lang.String standalone)
public boolean encodingSet()
javax.xml.stream.events.StartDocumentencodingSet in interface javax.xml.stream.events.StartDocumentpublic boolean standaloneSet()
javax.xml.stream.events.StartDocumentstandaloneSet in interface javax.xml.stream.events.StartDocumentpublic 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
BaseEventdoWriteAsEncodedUnicode in class BaseEventjava.io.IOException