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, _location
ATTRIBUTE, 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, writeAsEncodedUnicode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartElement, writeAsEncodedUnicode
protected 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.StartDocument
getSystemId
in class EventBase
public String getCharacterEncodingScheme()
getCharacterEncodingScheme
in interface javax.xml.stream.events.StartDocument
public boolean encodingSet()
encodingSet
in interface javax.xml.stream.events.StartDocument
public boolean isStandalone()
isStandalone
in interface javax.xml.stream.events.StartDocument
public boolean standaloneSet()
standaloneSet
in interface javax.xml.stream.events.StartDocument
public String getVersion()
getVersion
in interface javax.xml.stream.events.StartDocument
public 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.XMLEvent
isStartDocument
in class EventBase
Copyright © 2013 Oracle Corpration. All Rights Reserved.