|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.stream.events Interface StartDocument
- All Superinterfaces:
- XMLEvent, XMLStreamConstants
public interface StartDocument
- extends XMLEvent
Implements:
XMLEvent
开始文档事件的接口。
version | 1.0 |
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 |
---|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
Method Summary | |
---|---|
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 |
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"
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!