public class StartDocumentEvent extends EventBase implements javax.xml.stream.events.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 javax.xml.stream.events.StartDocumentgetSystemId in class EventBasepublic 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 String getVersion()
getVersion in interface javax.xml.stream.events.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 javax.xml.stream.events.XMLEventisStartDocument in class EventBaseCopyright © 2012 Oracle Corpration. All Rights Reserved.