javax.xml.transform.sax

Class SAXResult

public class SAXResult extends Object implements Result

Specifies SAX handlers to be used as a result sink during a transformation.
Field Summary
static StringFEATURE
Factory feature indicating that SAX results are supported.
Constructor Summary
SAXResult()
Default constructor.
SAXResult(ContentHandler handler)
Constructor specifying a content handler.
Method Summary
ContentHandlergetHandler()
Returns the content handler to which result document events will be propagated.
LexicalHandlergetLexicalHandler()
Returns the lexical handler to which lexical events will be propagated.
StringgetSystemId()
Returns the system ID which this result represnts.
voidsetHandler(ContentHandler handler)
Sets the content handler to which result document events will be propagated.
voidsetLexicalHandler(LexicalHandler handler)
Sets the lexical handler to which lexical events will be propagated.
voidsetSystemId(String systemId)
Sets the system ID which this result represents.

Field Detail

FEATURE

public static final String FEATURE
Factory feature indicating that SAX results are supported.

Constructor Detail

SAXResult

public SAXResult()
Default constructor.

SAXResult

public SAXResult(ContentHandler handler)
Constructor specifying a content handler.

Method Detail

getHandler

public ContentHandler getHandler()
Returns the content handler to which result document events will be propagated.

getLexicalHandler

public LexicalHandler getLexicalHandler()
Returns the lexical handler to which lexical events will be propagated. If a lexical handler is not set, the transformer should attempt to cast the content handler to a lexical handler.

getSystemId

public String getSystemId()
Returns the system ID which this result represnts.

setHandler

public void setHandler(ContentHandler handler)
Sets the content handler to which result document events will be propagated.

setLexicalHandler

public void setLexicalHandler(LexicalHandler handler)
Sets the lexical handler to which lexical events will be propagated. If a lexical handler is not set, the transformer should attempt to cast the content handler to a lexical handler.

setSystemId

public void setSystemId(String systemId)
Sets the system ID which this result represents.