javax.xml.transform.sax

Class SAXResult

Implemented Interfaces:
Result

public class SAXResult
extends java.lang.Object
implements Result

Specifies SAX handlers to be used as a result sink during a transformation.

Field Summary

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

Fields inherited from interface javax.xml.transform.Result

PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING

Constructor Summary

SAXResult()
Default constructor.
SAXResult(ContentHandler handler)
Constructor specifying a content handler.

Method Summary

ContentHandler
getHandler()
Returns the content handler to which result document events will be propagated.
LexicalHandler
getLexicalHandler()
Returns the lexical handler to which lexical events will be propagated.
String
getSystemId()
Returns the system ID which this result represnts.
void
setHandler(ContentHandler handler)
Sets the content handler to which result document events will be propagated.
void
setLexicalHandler(LexicalHandler handler)
Sets the lexical handler to which lexical events will be propagated.
void
setSystemId(String systemId)
Sets the system ID which this result represents.

Field Details

FEATURE

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

Constructor Details

SAXResult

public SAXResult()
Default constructor.


SAXResult

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

Method Details

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.
Specified by:
getSystemId in interface Result


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.
Specified by:
setSystemId in interface Result