public class StartDocumentEvent extends EventBase implements StartDocument
| Modifier and Type | Field and Description |
|---|---|
protected String |
_encoding |
protected boolean |
_standalone |
protected String |
_systemId |
protected String |
_version |
_eventType, _locationATTRIBUTE, 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(String encoding) |
StartDocumentEvent(String encoding,
String version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
encodingSet()
Returns true if CharacterEncodingScheme was set in
the encoding declaration of the document
|
String |
getCharacterEncodingScheme()
Returns the encoding style of the XML data
|
String |
getSystemId()
Returns the system ID of the XML data
|
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(String encoding) |
void |
setStandalone(boolean standalone) |
void |
setStandalone(String s) |
void |
setVersion(String s) |
boolean |
standaloneSet()
Returns true if the standalone attribute was set in
the encoding declaration of the document.
|
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 String _systemId
protected String _encoding
protected boolean _standalone
protected String _version
public StartDocumentEvent()
public StartDocumentEvent(String encoding)
public void reset()
public String getSystemId()
getSystemId in interface StartDocumentgetSystemId in class EventBasepublic String getCharacterEncodingScheme()
getCharacterEncodingScheme in interface StartDocumentpublic boolean encodingSet()
encodingSet in interface StartDocumentpublic boolean isStandalone()
isStandalone in interface StartDocumentpublic boolean standaloneSet()
standaloneSet in interface StartDocumentpublic String getVersion()
getVersion in interface StartDocumentpublic void setStandalone(boolean standalone)
public void setStandalone(String s)
public void setEncoding(String encoding)
public void setVersion(String s)
public boolean isStartDocument()
isStartDocument in interface XMLEventisStartDocument in class EventBaseCopyright © 2005–2017 Oracle Corporation. All rights reserved.