javax.xml.stream.events.StartDocument, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstantspublic class StartDocumentEvent extends EventBase implements javax.xml.stream.events.StartDocument
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
_encoding |
|
protected boolean |
_standalone |
|
protected java.lang.String |
_systemId |
|
protected java.lang.String |
_version |
_eventType, _location| Constructor | Description |
|---|---|
StartDocumentEvent() |
|
StartDocumentEvent(java.lang.String encoding) |
|
StartDocumentEvent(java.lang.String encoding,
java.lang.String version) |
| Modifier and Type | Method | 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, writeAsEncodedUnicodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartElement, writeAsEncodedUnicodeprotected 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.StartDocumentgetSystemId in class EventBasepublic java.lang.String getCharacterEncodingScheme()
getCharacterEncodingScheme in interface javax.xml.stream.events.StartDocumentpublic boolean encodingSet()
encodingSet in interface javax.xml.stream.events.StartDocumentpublic boolean isStandalone()
isStandalone in interface javax.xml.stream.events.StartDocumentpublic boolean standaloneSet()
standaloneSet in interface javax.xml.stream.events.StartDocumentpublic java.lang.String getVersion()
getVersion in interface javax.xml.stream.events.StartDocumentpublic 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.Objectpublic boolean isStartDocument()
isStartDocument in interface javax.xml.stream.events.XMLEventisStartDocument in class EventBaseCopyright © 2018 Oracle Corporation. All rights reserved.