Class StartDocumentEvent
- java.lang.Object
-
- com.sun.xml.fastinfoset.stax.events.EventBase
-
- com.sun.xml.fastinfoset.stax.events.StartDocumentEvent
-
- All Implemented Interfaces:
javax.xml.stream.events.StartDocument,javax.xml.stream.events.XMLEvent,javax.xml.stream.XMLStreamConstants
public class StartDocumentEvent extends EventBase implements javax.xml.stream.events.StartDocument
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String_encodingprivate boolean_encodingSetprotected boolean_standaloneprivate boolean_standaloneSetprotected java.lang.String_systemIdprotected java.lang.String_version-
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
-
-
Constructor Summary
Constructors Constructor Description StartDocumentEvent()StartDocumentEvent(java.lang.String encoding)StartDocumentEvent(java.lang.String encoding, java.lang.String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidclear()booleanencodingSet()Returns true if CharacterEncodingScheme was set in the encoding declaration of the documentjava.lang.StringgetCharacterEncodingScheme()Returns the encoding style of the XML datajava.lang.StringgetSystemId()Returns the system ID of the XML datajava.lang.StringgetVersion()Returns the version of XML of this XML streambooleanisStandalone()Returns if this XML is standalonebooleanisStartDocument()voidreset()(package private) voidsetDeclaredEncoding(boolean value)voidsetEncoding(java.lang.String encoding)voidsetStandalone(boolean standalone)voidsetStandalone(java.lang.String s)voidsetVersion(java.lang.String s)booleanstandaloneSet()Returns true if the standalone attribute was set in the encoding declaration of the document.java.lang.StringtoString()-
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, writeAsEncodedUnicode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartElement, writeAsEncodedUnicode
-
-
-
-
Method Detail
-
reset
public void reset()
-
getSystemId
public java.lang.String getSystemId()
Returns the system ID of the XML data- Specified by:
getSystemIdin interfacejavax.xml.stream.events.StartDocument- Overrides:
getSystemIdin classEventBase- Returns:
- the system ID, defaults to ""
-
getCharacterEncodingScheme
public java.lang.String getCharacterEncodingScheme()
Returns the encoding style of the XML data- Specified by:
getCharacterEncodingSchemein interfacejavax.xml.stream.events.StartDocument- 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 interfacejavax.xml.stream.events.StartDocument
-
isStandalone
public boolean isStandalone()
Returns if this XML is standalone- Specified by:
isStandalonein interfacejavax.xml.stream.events.StartDocument- 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 interfacejavax.xml.stream.events.StartDocument
-
getVersion
public java.lang.String getVersion()
Returns the version of XML of this XML stream- Specified by:
getVersionin interfacejavax.xml.stream.events.StartDocument- Returns:
- the version of XML, defaults to "1.0"
-
setStandalone
public void setStandalone(boolean standalone)
-
setStandalone
public void setStandalone(java.lang.String s)
-
setEncoding
public void setEncoding(java.lang.String encoding)
-
setDeclaredEncoding
void setDeclaredEncoding(boolean value)
-
setVersion
public void setVersion(java.lang.String s)
-
clear
void clear()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isStartDocument
public boolean isStartDocument()
- Specified by:
isStartDocumentin interfacejavax.xml.stream.events.XMLEvent- Overrides:
isStartDocumentin classEventBase
-
-