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
public class StartDocumentEvent extends EventBase implements StartDocument
-
-
Field Summary
Fields Modifier and Type Field Description protected String_encodingprotected boolean_standaloneprotected String_systemIdprotected String_version-
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
-
Fields 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
Constructors Constructor Description StartDocumentEvent()StartDocumentEvent(String encoding)StartDocumentEvent(String encoding, String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanencodingSet()Returns true if CharacterEncodingScheme was set in the encoding declaration of the documentStringgetCharacterEncodingScheme()Returns the encoding style of the XML dataStringgetSystemId()Returns the system ID of the XML dataStringgetVersion()Returns the version of XML of this XML streambooleanisStandalone()Returns if this XML is standalonebooleanisStartDocument()voidreset()voidsetEncoding(String encoding)voidsetStandalone(boolean standalone)voidsetStandalone(String s)voidsetVersion(String s)booleanstandaloneSet()Returns true if the standalone attribute was set in the encoding declaration of the document.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 String getSystemId()
Returns the system ID of the XML data- Specified by:
getSystemIdin interfaceStartDocument- Overrides:
getSystemIdin classEventBase- Returns:
- the system ID, defaults to ""
-
getCharacterEncodingScheme
public String 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
public String 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
public void setStandalone(String s)
-
setEncoding
public void setEncoding(String encoding)
-
setVersion
public void setVersion(String s)
-
isStartDocument
public boolean isStartDocument()
- Specified by:
isStartDocumentin interfaceXMLEvent- Overrides:
isStartDocumentin classEventBase
-
-