public class StartDocumentEvent extends EventBase implements javax.xml.stream.events.StartDocument
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_encoding |
protected boolean |
_standalone |
protected java.lang.String |
_systemId |
protected java.lang.String |
_version |
_eventType, _location
Constructor and Description |
---|
StartDocumentEvent() |
StartDocumentEvent(java.lang.String encoding) |
StartDocumentEvent(java.lang.String encoding,
java.lang.String version) |
Modifier and Type | Method and Description |
---|---|
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 data
|
java.lang.String |
getVersion()
Returns the version of XML of this XML stream
|
boolean |
isStandalone()
Returns if this XML is standalone
|
boolean |
isStartDocument() |
void |
reset() |
void |
setEncoding(java.lang.String encoding) |
void |
setStandalone(boolean standalone) |
void |
setStandalone(java.lang.String s) |
void |
setVersion(java.lang.String s) |
boolean |
standaloneSet()
Returns true if the standalone attribute was set in
the encoding declaration of the document.
|
java.lang.String |
toString() |
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartElement, setEventType, setLocation, writeAsEncodedUnicode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartElement, writeAsEncodedUnicode
protected java.lang.String _systemId
protected java.lang.String _encoding
protected boolean _standalone
protected java.lang.String _version
public StartDocumentEvent()
public StartDocumentEvent(java.lang.String encoding)
public StartDocumentEvent(java.lang.String encoding, java.lang.String version)
public void reset()
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.stream.events.StartDocument
getSystemId
in class EventBase
public java.lang.String getCharacterEncodingScheme()
getCharacterEncodingScheme
in interface javax.xml.stream.events.StartDocument
public boolean encodingSet()
encodingSet
in interface javax.xml.stream.events.StartDocument
public boolean isStandalone()
isStandalone
in interface javax.xml.stream.events.StartDocument
public boolean standaloneSet()
standaloneSet
in interface javax.xml.stream.events.StartDocument
public java.lang.String getVersion()
getVersion
in interface javax.xml.stream.events.StartDocument
public void setStandalone(boolean standalone)
public void setStandalone(java.lang.String s)
public void setEncoding(java.lang.String encoding)
public void setVersion(java.lang.String s)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isStartDocument()
isStartDocument
in interface javax.xml.stream.events.XMLEvent
isStartDocument
in class EventBase