Class StartDocumentEvent
java.lang.Object
com.sun.xml.fastinfoset.stax.events.EventBase
com.sun.xml.fastinfoset.stax.events.StartDocumentEvent
- All Implemented Interfaces:
StartDocument,XMLEvent,XMLStreamConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected Stringprotected StringFields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _locationFields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT -
Constructor Summary
ConstructorsConstructorDescriptionStartDocumentEvent(String encoding) StartDocumentEvent(String encoding, String version) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if CharacterEncodingScheme was set in the encoding declaration of the documentReturns the encoding style of the XML dataReturns the system ID of the XML dataReturns the version of XML of this XML streambooleanReturns if this XML is standalonebooleanvoidreset()voidsetEncoding(String encoding) voidsetStandalone(boolean standalone) voidvoidsetVersion(String s) booleanReturns true if the standalone attribute was set in the encoding declaration of the document.toString()Methods inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartElement, setEventType, setLocation, writeAsEncodedUnicodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartElement, writeAsEncodedUnicode
-
Field Details
-
_systemId
-
_encoding
-
_standalone
protected boolean _standalone -
_version
-
-
Constructor Details
-
StartDocumentEvent
public StartDocumentEvent() -
StartDocumentEvent
-
StartDocumentEvent
-
-
Method Details
-
reset
public void reset() -
getSystemId
Returns the system ID of the XML data- Specified by:
getSystemIdin interfaceStartDocument- Overrides:
getSystemIdin classEventBase- Returns:
- the system ID, defaults to ""
-
getCharacterEncodingScheme
Returns the encoding style of the XML data- Specified by:
getCharacterEncodingSchemein interfaceStartDocument- Returns:
- the character encoding, defaults to "UTF-8"
-
encodingSet
public boolean encodingSet()Returns true if CharacterEncodingScheme was set in the encoding declaration of the document- Specified by:
encodingSetin interfaceStartDocument
-
isStandalone
public boolean isStandalone()Returns if this XML is standalone- Specified by:
isStandalonein interfaceStartDocument- Returns:
- the standalone state of XML, defaults to "no"
-
standaloneSet
public boolean standaloneSet()Returns true if the standalone attribute was set in the encoding declaration of the document.- Specified by:
standaloneSetin interfaceStartDocument
-
getVersion
Returns the version of XML of this XML stream- Specified by:
getVersionin interfaceStartDocument- Returns:
- the version of XML, defaults to "1.0"
-
setStandalone
public void setStandalone(boolean standalone) -
setStandalone
-
setEncoding
-
setVersion
-
toString
-
isStartDocument
public boolean isStartDocument()- Specified by:
isStartDocumentin interfaceXMLEvent- Overrides:
isStartDocumentin classEventBase
-