Most visited

Recently visited

Added in API level 8

Source

public interface Source

javax.xml.transform.Source
Known Indirect Subclasses


实现此接口的对象包含充当源输入(XML源或转换指令)所需的信息。

Summary

Public methods

abstract String getSystemId()

获取使用setSystemId设置的系统标识符。

abstract void setSystemId(String systemId)

设置此源的系统标识符。

Public methods

getSystemId

Added in API level 8
String getSystemId ()

获取使用setSystemId设置的系统标识符。

Returns
String The system identifier that was set with setSystemId, or null if setSystemId was not called.

setSystemId

Added in API level 8
void setSystemId (String systemId)

设置此源的系统标识符。

如果源未从URL获取数据,则系统标识符是可选的,但提供一个可能仍然有用。 例如,应用程序可以使用系统标识符来解析相对URI并包含错误消息和警告。

Parameters
systemId String: The system identifier as a URL string.

Hooray!