public interface TransformerHandler
implements ContentHandler, LexicalHandler, DTDHandler
javax.xml.transform.sax.TransformerHandler |
TransformerHandler监听SAX ContentHandler解析事件并将它们转换为Result。
Public methods |
|
---|---|
abstract String |
getSystemId() 从相关URL的解析位置获取基本ID(URI或系统ID)。 |
abstract Transformer |
getTransformer() 获取与此处理程序关联的 |
abstract void |
setResult(Result result) 设置与此 |
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
|
String getSystemId ()
从相关URL的解析位置获取基本ID(URI或系统ID)。
Returns | |
---|---|
String |
The systemID that was set with setSystemId(String) . |
Transformer getTransformer ()
获取与此处理程序关联的 Transformer
,这是设置参数和输出属性所需的。
Returns | |
---|---|
Transformer |
Transformer associated with this TransformerHandler . |
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. |
void setSystemId (String systemID)
设置相对URL将被解析的基本ID(URI或系统ID)。
Parameters | |
---|---|
systemID |
String : Base URI for the source tree. |