Top Description Methods
com.sun.xml.internal.stream.writers

public Interface XMLStreamWriterBase

extends XMLStreamWriter
Known Direct Implementers
com.sun.xml.internal.stream.writers.XMLStreamWriterImpl, com.sun.xml.internal.stream.writers.XMLDOMWriterImpl
Imports
javax.xml.stream.XMLStreamException, .XMLStreamWriter

Base class for shared methods among XMLStreamWriter implementations.

Method Summary

Modifier and TypeMethod and Description
public void
writeStartDocument(String
the specified encoding
encoding
,
String
the specified version
version
,
boolean
the flag indicating whether it is standalone
standalone
,
boolean
the flag indicating whether the standalone attribute is set
standaloneSet
)

Writes the XML declaration.

Inherited from javax.xml.stream.XMLStreamWriter:
closeflushgetNamespaceContextgetPrefixgetPropertysetDefaultNamespacesetNamespaceContextsetPrefixwriteAttributewriteAttributewriteAttributewriteCDatawriteCharacterswriteCharacterswriteCommentwriteDefaultNamespacewriteDTDwriteEmptyElementwriteEmptyElementwriteEmptyElementwriteEndDocumentwriteEndElementwriteEntityRefwriteNamespacewriteProcessingInstructionwriteProcessingInstructionwriteStartDocumentwriteStartDocumentwriteStartDocumentwriteStartElementwriteStartElementwriteStartElement

Method Detail

writeStartDocumentback to summary
public void writeStartDocument(String encoding, String version, boolean standalone, boolean standaloneSet) throws XMLStreamException

Writes the XML declaration.

Parameters
encoding:String

the specified encoding

version:String

the specified version

standalone:boolean

the flag indicating whether it is standalone

standaloneSet:boolean

the flag indicating whether the standalone attribute is set

Exceptions
XMLStreamException:
in case of an IOException