javax.xml.transform.sax
Class SAXResult

java.lang.Object
  extended by javax.xml.transform.sax.SAXResult
All Implemented Interfaces:
Result

public class SAXResult
extends 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURE

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

See Also:
Constant Field Values
Constructor Detail

SAXResult

public SAXResult()
Default constructor.


SAXResult

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

Method Detail

setHandler

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


getHandler

public ContentHandler getHandler()
Returns 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.


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.


setSystemId

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

Specified by:
setSystemId in interface Result
Parameters:
systemId - the system ID URI

getSystemId

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

Specified by:
getSystemId in interface Result