StartDocument (Java EE 5)

Java EE API


javax.xml.stream.events Interface StartDocument

All Superinterfaces:
XMLEvent, XMLStreamConstants

public interface StartDocument
extends XMLEvent

Implements: XMLEvent

开始文档事件的接口。
英文文档:

An interface for the start document event

Version:
1.0
Author:
Copyright (c) 2003 by BEA Systems. All Rights Reserved.

Field Summary
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
 
Method Summary
 boolean
 String
 String
 String
 boolean
 boolean
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
 

Method Detail

public String getSystemId()
返回 XML 数据的系统 ID
return 系统ID,默认值为 ""
英文文档:

getSystemId

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

Returns:
the system ID, defaults to ""

public String getCharacterEncodingScheme()
返回 XML 数据的编码样式
return 字符编码,默认值为 "UTF-8"
英文文档:

getCharacterEncodingScheme

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

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

public boolean encodingSet()
如果在文档的编码声明中设置了 CharacterEncodingScheme,则返回 true。
英文文档:

encodingSet

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


public boolean isStandalone()
如果此 XML 是独立的,则返回 true。
return XML 的独立状态,默认值为 "no"
英文文档:

isStandalone

boolean isStandalone()
Returns if this XML is standalone

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

public boolean standaloneSet()
如果在文档的编码声明中设置了单独属性,则返回 ture。
英文文档:

standaloneSet

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


public String getVersion()
返回此 XML 流的 XML 版本
return XML 的版本,默认值为 "1.0"
英文文档:

getVersion

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

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


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!