StartDocument (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.stream.events Interface StartDocument

所有父接口:
XMLEvent, XMLStreamConstants

public interface StartDocument
extends XMLEvent

An interface for the start document event

版本:
1.0
作者:
Copyright (c) 2003 by BEA Systems. All Rights Reserved.

字段摘要
 
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
 
方法摘要
 boolean encodingSet()
          Returns true if CharacterEncodingScheme was set in the encoding declaration of the document
 String getCharacterEncodingScheme()
          Returns the encoding style of the XML data
 String getSystemId()
          Returns the system ID of the XML data
 String getVersion()
          Returns the version of XML of this XML stream
 boolean isStandalone()
          Returns if this XML is standalone
 boolean standaloneSet()
          Returns true if the standalone attribute was set in the encoding declaration of the document.
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

方法详细信息

getSystemId

String getSystemId()
Returns the system ID of the XML data

返回:
the system ID, defaults to ""

getCharacterEncodingScheme

String getCharacterEncodingScheme()
Returns the encoding style of the XML data

返回:
the character encoding, defaults to "UTF-8"

encodingSet

boolean encodingSet()
Returns true if CharacterEncodingScheme was set in the encoding declaration of the document


isStandalone

boolean isStandalone()
Returns if this XML is standalone

返回:
the standalone state of XML, defaults to "no"

standaloneSet

boolean standaloneSet()
Returns true if the standalone attribute was set in the encoding declaration of the document.


getVersion

String getVersion()
Returns the version of XML of this XML stream

返回:
the version of XML, defaults to "1.0"

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.