public interface SourceLocator
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
返回当前文档事件结束的字符位置。
|
int |
getLineNumber()
返回当前文档事件结束的行数。
|
String |
getPublicId()
返回当前文档事件的公共标识符。
|
String |
getSystemId()
返回当前文档事件的系统标识符。
|
String getPublicId()
返回值是文档实体的公共标识符或外部解析实体的公共标识符,其中触发事件的标记出现。
getSystemId()
String getSystemId()
返回值是文档实体的系统标识符或外部分析实体的系统标识符,在该实体中触发事件的标记出现。
如果系统标识符是一个链接,解析器必须完全解析它,才将它传递给应用程序。
getPublicId()
int getLineNumber()
警告:返回值的方法仅作为错误报告的缘故,一个近似;它不打算编辑原始XML文档的字符内容提供足够的信息。
返回值是文档实体或外部解析实体中的行号的近似值,在该实体中触发事件的标记出现。
getColumnNumber()
int getColumnNumber()
警告:返回值的方法仅作为错误报告的缘故,一个近似;它不打算编辑原始XML文档的字符内容提供足够的信息。
返回值是文档实体或外部解析实体中的列号的近似值,其中触发事件的标记将出现。
getLineNumber()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.