public interface

StartDocument

implements XMLEvent
javax.xml.stream.events.StartDocument

Class Overview

An interface for the start document event

Summary

[Expand]
Inherited Constants
From interface javax.xml.stream.XMLStreamConstants
Public Methods
abstract boolean encodingSet()
Returns true if CharacterEncodingScheme was set in the encoding declaration of the document
abstract String getCharacterEncodingScheme()
Returns the encoding style of the XML data
abstract String getSystemId()
Returns the system ID of the XML data
abstract String getVersion()
Returns the version of XML of this XML stream
abstract boolean isStandalone()
Returns if this XML is standalone
abstract boolean standaloneSet()
Returns true if the standalone attribute was set in the encoding declaration of the document.
[Expand]
Inherited Methods
From interface javax.xml.stream.events.XMLEvent

Public Methods

public abstract boolean encodingSet ()

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

public abstract String getCharacterEncodingScheme ()

Returns the encoding style of the XML data

Returns
  • the character encoding, defaults to "UTF-8"

public abstract String getSystemId ()

Returns the system ID of the XML data

Returns
  • the system ID, defaults to ""

public abstract String getVersion ()

Returns the version of XML of this XML stream

Returns
  • the version of XML, defaults to "1.0"

public abstract boolean isStandalone ()

Returns if this XML is standalone

Returns
  • the standalone state of XML, defaults to "no"

public abstract boolean standaloneSet ()

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