Most visited

Recently visited

Added in API level 8

TransformerHandler

public interface TransformerHandler
implements ContentHandler, LexicalHandler, DTDHandler

javax.xml.transform.sax.TransformerHandler


TransformerHandler监听SAX ContentHandler解析事件并将它们转换为Result。

Summary

Public methods

abstract String getSystemId()

从相关URL的解析位置获取基本ID(URI或系统ID)。

abstract Transformer getTransformer()

获取与此处理程序关联的 Transformer ,这是设置参数和输出属性所必需的。

abstract void setResult(Result result)

设置与此 Result关联的 TransformerHandler以用于转换。

abstract void setSystemId(String systemID)

设置相对URL将被解析的基本ID(URI或系统ID)。

Inherited methods

From interface org.xml.sax.ContentHandler
From interface org.xml.sax.ext.LexicalHandler
From interface org.xml.sax.DTDHandler

Public methods

getSystemId

Added in API level 8
String getSystemId ()

从相关URL的解析位置获取基本ID(URI或系统ID)。

Returns
String The systemID that was set with setSystemId(String).

getTransformer

Added in API level 8
Transformer getTransformer ()

获取与此处理程序关联的 Transformer ,这是设置参数和输出属性所需的。

Returns
Transformer Transformer associated with this TransformerHandler.

setResult

Added in API level 8
void setResult (Result result)

设置与此 Result关联的 TransformerHandler以用于转换。

Parameters
result Result: A Result instance, should not be null.
Throws
IllegalArgumentException if result is invalid for some reason.

setSystemId

Added in API level 8
void setSystemId (String systemID)

设置相对URL将被解析的基本ID(URI或系统ID)。

Parameters
systemID String: Base URI for the source tree.

Hooray!