APIdia Launch Partner
Top Description Methods
javax.xml.transform.sax

public Interface TransformerHandler

extends ContentHandler, LexicalHandler, DTDHandler
Known Direct Implementers
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl
Imports
javax.xml.transform.Result, .Transformer, org.xml.sax.ContentHandler, .DTDHandler, org.xml.sax.ext.LexicalHandler

A TransformerHandler listens for SAX ContentHandler parse events and transforms them to a Result.
Since
1.4

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The systemID that was set with setSystemId.
getSystemId
()

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

public Transformer

Returns:

Transformer associated with this TransformerHandler.
getTransformer
()

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

public void
setResult(Result
A Result instance, should not be null.
result
)

Set the Result associated with this TransformerHandler to be used for the transformation.

public void
setSystemId(String
Base URI for the source tree.
systemID
)

Set the base ID (URI or system ID) from where relative URLs will be resolved.

Inherited from org.xml.sax.ContentHandler:
charactersdeclarationendDocumentendElementendPrefixMappingignorableWhitespaceprocessingInstructionsetDocumentLocatorskippedEntitystartDocumentstartElementstartPrefixMapping
Inherited from org.xml.sax.DTDHandler:
notationDeclunparsedEntityDecl
Inherited from org.xml.sax.ext.LexicalHandler:
commentendCDATAendDTDendEntitystartCDATAstartDTDstartEntity

Method Detail

getSystemIdback to summary
public String getSystemId()

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

Returns:String

The systemID that was set with setSystemId.

getTransformerback to summary
public Transformer getTransformer()

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

Returns:Transformer

Transformer associated with this TransformerHandler.

setResultback to summary
public void setResult(Result result) throws IllegalArgumentException

Set the Result associated with this TransformerHandler to be used for the transformation.

Parameters
result:Result

A Result instance, should not be null.

Exceptions
IllegalArgumentException:
if result is invalid for some reason.
setSystemIdback to summary
public void setSystemId(String systemID)

Set the base ID (URI or system ID) from where relative URLs will be resolved.

Parameters
systemID:String

Base URI for the source tree.