javax.xml.transform.sax

Interface TransformerHandler

public interface TransformerHandler extends ContentHandler, LexicalHandler, DTDHandler

A TransformerHandler listens for SAX ContentHandler parse events and transforms them to a Result.
Method Summary
StringgetSystemId()
Get the base ID (URI or system ID) from where relative URLs will be resolved.
TransformergetTransformer()
Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.
voidsetResult(Result result)
Enables the user of the TransformerHandler to set the to set the Result for the transformation.
voidsetSystemId(String systemID)
Set the base ID (URI or system ID) from where relative URLs will be resolved.

Method Detail

getSystemId

public String getSystemId()
Get the base ID (URI or system ID) from where relative URLs will be resolved.

Returns: The systemID that was set with {@link #setSystemId}.

getTransformer

public Transformer getTransformer()
Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.

setResult

public void setResult(Result result)
Enables the user of the TransformerHandler to set the to set the Result for the transformation.

Parameters: result A Result instance, should not be null.

Throws: IllegalArgumentException if result is invalid for some reason.

setSystemId

public void setSystemId(String systemID)
Set the base ID (URI or system ID) from where relative URLs will be resolved.

Parameters: systemID Base URI for the source tree.