public class StartDocumentEvent extends AbstractXMLEvent implements javax.xml.stream.events.StartDocument
StartDocument implementation.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_ENCODING
Default encoding returned by
getCharacterEncodingScheme(). |
static java.lang.String |
DEFAULT_SYSTEM_ID
Default system id returned by
getSystemId(). |
static java.lang.String |
DEFAULT_VERSION
Default XML version returned by
getVersion(). |
protected java.lang.String |
encoding
The document encoding, or
null if none was specified. |
protected java.lang.Boolean |
standalone
The document standalone value, or
null if none was specified. |
protected java.lang.String |
version
The XML version, or
null if none was specified. |
location, schemaType| Constructor and Description |
|---|
StartDocumentEvent() |
StartDocumentEvent(javax.xml.stream.Location location) |
StartDocumentEvent(javax.xml.stream.events.StartDocument that)
Copy constructor.
|
StartDocumentEvent(java.lang.String encoding,
java.lang.Boolean standalone,
java.lang.String version,
javax.xml.stream.Location location) |
StartDocumentEvent(java.lang.String encoding,
java.lang.Boolean standalone,
java.lang.String version,
javax.xml.stream.Location location,
javax.xml.namespace.QName schemaType) |
StartDocumentEvent(java.lang.String encoding,
javax.xml.stream.Location location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
encodingSet() |
java.lang.String |
getCharacterEncodingScheme() |
int |
getEventType()
Returns
XMLStreamConstants.START_DOCUMENT. |
java.lang.String |
getSystemId() |
java.lang.String |
getVersion() |
boolean |
isStandalone() |
boolean |
standaloneSet() |
asCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEventequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodepublic static final java.lang.String DEFAULT_VERSION
getVersion().public static final java.lang.String DEFAULT_SYSTEM_ID
getSystemId().public static final java.lang.String DEFAULT_ENCODING
getCharacterEncodingScheme().protected java.lang.String encoding
null if none was specified.protected java.lang.Boolean standalone
null if none was specified.protected java.lang.String version
null if none was specified.public StartDocumentEvent()
public StartDocumentEvent(javax.xml.stream.Location location)
public StartDocumentEvent(java.lang.String encoding,
javax.xml.stream.Location location)
public StartDocumentEvent(java.lang.String encoding,
java.lang.Boolean standalone,
java.lang.String version,
javax.xml.stream.Location location)
public StartDocumentEvent(java.lang.String encoding,
java.lang.Boolean standalone,
java.lang.String version,
javax.xml.stream.Location location,
javax.xml.namespace.QName schemaType)
public StartDocumentEvent(javax.xml.stream.events.StartDocument that)
that - The StartDocument event to copy.public int getEventType()
XMLStreamConstants.START_DOCUMENT.getEventType in interface javax.xml.stream.events.XMLEventpublic boolean encodingSet()
encodingSet in interface javax.xml.stream.events.StartDocumentpublic java.lang.String getCharacterEncodingScheme()
getCharacterEncodingScheme in interface javax.xml.stream.events.StartDocumentpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.stream.events.StartDocumentpublic java.lang.String getVersion()
getVersion 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.StartDocument