APIdia Launch Partner
Top Description Methods
javax.xml.stream.events

public Interface StartDocument

extends XMLEvent
Known Direct Implementers
com.sun.xml.internal.stream.events.StartDocumentEvent

An interface for the start document event
Author
Copyright (c) 2009 by Oracle Corporation. All Rights Reserved.
Since
1.6
Version
1.0

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if CharacterEncodingScheme is set, false otherwise
encodingSet
()

Returns true if CharacterEncodingScheme is set in the encoding declaration of the document

public String

Returns:

the character encoding, defaults to "UTF-8"
getCharacterEncodingScheme
()

Returns the encoding style of the XML data

public String

Returns:

the system ID, defaults to ""
getSystemId
()

Returns the system ID of the XML data

public String

Returns:

the version of XML, defaults to "1.0"
getVersion
()

Returns the version of XML of this XML stream

public boolean

Returns:

the standalone state of XML, defaults to "no"
isStandalone
()

Returns if this XML is standalone

public boolean

Returns:

true if the standalone attribute is set, false otherwise
standaloneSet
()

Returns true if the standalone attribute is set in the encoding declaration of the document.

Inherited from javax.xml.stream.events.XMLEvent:
asCharactersasEndElementasStartElementgetEventTypegetLocationgetSchemaTypeisAttributeisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementwriteAsEncodedUnicode

Method Detail

encodingSetback to summary
public boolean encodingSet()

Returns true if CharacterEncodingScheme is set in the encoding declaration of the document

Returns:boolean

true if CharacterEncodingScheme is set, false otherwise

getCharacterEncodingSchemeback to summary
public String getCharacterEncodingScheme()

Returns the encoding style of the XML data

Returns:String

the character encoding, defaults to "UTF-8"

getSystemIdback to summary
public String getSystemId()

Returns the system ID of the XML data

Returns:String

the system ID, defaults to ""

getVersionback to summary
public String getVersion()

Returns the version of XML of this XML stream

Returns:String

the version of XML, defaults to "1.0"

isStandaloneback to summary
public boolean isStandalone()

Returns if this XML is standalone

Returns:boolean

the standalone state of XML, defaults to "no"

standaloneSetback to summary
public boolean standaloneSet()

Returns true if the standalone attribute is set in the encoding declaration of the document.

Returns:boolean

true if the standalone attribute is set, false otherwise