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 String
private boolean
protected boolean
private boolean
protected String
protected String
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
ConstructorsConstructorDescriptionStartDocumentEvent
(String encoding) StartDocumentEvent
(String encoding, String version) -
Method Summary
Modifier and TypeMethodDescription(package private) void
clear()
boolean
Returns 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 streamboolean
Returns if this XML is standaloneboolean
void
reset()
(package private) void
setDeclaredEncoding
(boolean value) void
setEncoding
(String encoding) void
setStandalone
(boolean standalone) void
void
setVersion
(String s) boolean
Returns 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, 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
-
Field Details
-
_systemId
-
_encoding
-
_standalone
protected boolean _standalone -
_version
-
_encodingSet
private boolean _encodingSet -
_standaloneSet
private boolean _standaloneSet
-
-
Constructor Details
-
StartDocumentEvent
public StartDocumentEvent() -
StartDocumentEvent
-
StartDocumentEvent
-
-
Method Details
-
reset
public void reset() -
getSystemId
Returns the system ID of the XML data- Specified by:
getSystemId
in interfaceStartDocument
- Overrides:
getSystemId
in classEventBase
- Returns:
- the system ID, defaults to ""
-
getCharacterEncodingScheme
Returns the encoding style of the XML data- Specified by:
getCharacterEncodingScheme
in 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:
encodingSet
in interfaceStartDocument
-
isStandalone
public boolean isStandalone()Returns if this XML is standalone- Specified by:
isStandalone
in 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:
standaloneSet
in interfaceStartDocument
-
getVersion
Returns the version of XML of this XML stream- Specified by:
getVersion
in interfaceStartDocument
- Returns:
- the version of XML, defaults to "1.0"
-
setStandalone
public void setStandalone(boolean standalone) -
setStandalone
-
setEncoding
-
setDeclaredEncoding
void setDeclaredEncoding(boolean value) -
setVersion
-
clear
void clear() -
toString
-
isStartDocument
public boolean isStartDocument()- Specified by:
isStartDocument
in interfaceXMLEvent
- Overrides:
isStartDocument
in classEventBase
-