Class StartDocumentEvent
java.lang.Object
com.bea.xml.stream.events.BaseEvent
com.bea.xml.stream.events.StartDocumentEvent
- All Implemented Interfaces:
StartDocument, XMLEvent, Location, XMLStreamConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected booleanprotected Stringprotected StringFields inherited from interface 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()protected voiddoWriteAsEncodedUnicode(Writer writer) Template method to be implemented by sub-classes.booleanReturns true if CharacterEncodingScheme was set in the encoding declaration of the documentReturns the encoding style of the XML dataReturns the system ID of the XMLReturns the version of XML of this XML streamprotected voidinit()booleanReturns if this XML is standalonevoidsetEncoding(String encoding) voidsetStandalone(boolean standalone) voidsetStandalone(String standalone) voidsetVersion(String version) booleanReturns true if the standalone attribute was set in the encoding declaration of the document.Methods inherited from class BaseEvent
asCharacters, asEndElement, asStartElement, getCharacterOffset, getColumnNumber, getEventType, getLineNumber, getLocation, getLocationURI, getPublicId, getSchemaType, getSourceName, getTypeAsString, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, recycle, setCharacterOffset, setColumnNumber, setEventType, setLineNumber, setLocationURI, toString, writeAsEncodedUnicodeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
Field Details
-
systemId
-
publicId
-
encodingScheme
-
standalone
protected boolean standalone -
version
-
-
Constructor Details
-
StartDocumentEvent
public StartDocumentEvent()
-
-
Method Details
-
init
protected void init() -
getSystemId
Description copied from interface:javax.xml.stream.LocationReturns the system ID of the XML- Specified by:
getSystemIdin interfaceLocation- Specified by:
getSystemIdin interfaceStartDocument- Overrides:
getSystemIdin classBaseEvent- Returns:
- the system ID, or null if not available
-
getCharacterEncodingScheme
Description copied from interface:javax.xml.stream.events.StartDocumentReturns the encoding style of the XML data- Specified by:
getCharacterEncodingSchemein interfaceStartDocument- Returns:
- the character encoding, defaults to "UTF-8"
-
isStandalone
public boolean isStandalone()Description copied from interface:javax.xml.stream.events.StartDocumentReturns if this XML is standalone- Specified by:
isStandalonein interfaceStartDocument- Returns:
- the standalone state of XML, defaults to "no"
-
getVersion
Description copied from interface:javax.xml.stream.events.StartDocumentReturns 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
-
encodingSet
public boolean encodingSet()Description copied from interface:javax.xml.stream.events.StartDocumentReturns true if CharacterEncodingScheme was set in the encoding declaration of the document- Specified by:
encodingSetin interfaceStartDocument
-
standaloneSet
public boolean standaloneSet()Description copied from interface:javax.xml.stream.events.StartDocumentReturns true if the standalone attribute was set in the encoding declaration of the document.- Specified by:
standaloneSetin interfaceStartDocument
-
setEncoding
-
setVersion
-
clear
public void clear() -
doWriteAsEncodedUnicode
Description copied from class:BaseEventTemplate method to be implemented by sub-classes.- Specified by:
doWriteAsEncodedUnicodein classBaseEvent- Throws:
IOException
-