public class StartDocumentEvent extends AbstractXMLEvent implements StartDocument
StartDocument implementation.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENCODING
Default encoding returned by
getCharacterEncodingScheme(). |
static String |
DEFAULT_SYSTEM_ID
Default system id returned by
getSystemId(). |
static String |
DEFAULT_VERSION
Default XML version returned by
getVersion(). |
protected String |
encoding
The document encoding, or
null if none was specified. |
protected Boolean |
standalone
The document standalone value, or
null if none was specified. |
protected String |
version
The XML version, or
null if none was specified. |
location, schemaTypeATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
StartDocumentEvent() |
StartDocumentEvent(Location location) |
StartDocumentEvent(StartDocument that)
Copy constructor.
|
StartDocumentEvent(String encoding,
Boolean standalone,
String version,
Location location) |
StartDocumentEvent(String encoding,
Boolean standalone,
String version,
Location location,
QName schemaType) |
StartDocumentEvent(String encoding,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
encodingSet() |
String |
getCharacterEncodingScheme() |
int |
getEventType()
Returns
XMLStreamConstants.START_DOCUMENT. |
String |
getSystemId() |
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 String DEFAULT_VERSION
getVersion().public static final String DEFAULT_SYSTEM_ID
getSystemId().public static final String DEFAULT_ENCODING
getCharacterEncodingScheme().protected String encoding
null if none was specified.protected Boolean standalone
null if none was specified.protected String version
null if none was specified.public StartDocumentEvent()
public StartDocumentEvent(Location location)
public StartDocumentEvent(String encoding, Boolean standalone, String version, Location location)
public StartDocumentEvent(String encoding, Boolean standalone, String version, Location location, QName schemaType)
public StartDocumentEvent(StartDocument that)
that - The StartDocument event to copy.public int getEventType()
XMLStreamConstants.START_DOCUMENT.getEventType in interface XMLEventpublic boolean encodingSet()
encodingSet in interface StartDocumentpublic String getCharacterEncodingScheme()
getCharacterEncodingScheme in interface StartDocumentpublic String getSystemId()
getSystemId in interface StartDocumentpublic String getVersion()
getVersion in interface StartDocumentpublic boolean isStandalone()
isStandalone in interface StartDocumentpublic boolean standaloneSet()
standaloneSet in interface StartDocumentCopyright © 2020. All rights reserved.