|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
public interface DOMLocator
DOMLocator 是一個描述位置(如發生錯誤的位置)的介面。
另請參見 Document Object Model (DOM) Level 3 Core Specification。
| 方法摘要 | |
|---|---|
int |
getByteOffset()
此定位器指向的輸入源中的位元組偏移量;如果沒有可用的位元組偏移量,則為 -1。 |
int |
getColumnNumber()
此定位器指向的列號;如果沒有可用的列號,則為 -1。 |
int |
getLineNumber()
此定位器指向的行號;如果沒有可用的行號,則為 -1。 |
Node |
getRelatedNode()
此定位器指向的節點;如果沒有可用的節點,則為 null。 |
String |
getUri()
此定位器指向的 URI;如果沒有可用的 URI,則為 null。 |
int |
getUtf16Offset()
此定位器指向的輸入源中的 UTF-16 偏移量(如在 [Unicode] 和 [ISO/IEC 10646] 的 Amendment 1 中定義的那樣);如果不存在可用的 UTF-16 偏移量,則為 -1。 |
| 方法詳細資訊 |
|---|
int getLineNumber()
-1。
int getColumnNumber()
-1。
int getByteOffset()
-1。
int getUtf16Offset()
-1。
Node getRelatedNode()
null。
String getUri()
null。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。