Team LiB
Previous Section Next Section

SAXResultjavax.xml.transform.sax

Java 1.4

This class is a Result implementation that describes the content of a transformed document by triggering the methods of the specified ContentHandler. That is, a SAXResult acts like a org.xml.sax.SAXReader object, invoking the methods of the specified org.xml.sax.ContentHandler object as it parses the transformed document. You may also provide a org.xml.sax.ext.LexicalHandler object whose methods will be invoked by the SAXResult by calling setLexicalHandler, or by suppling a ContentHandler object that also implements the LexicalHandler interface.

Figure 20-11. javax.xml.transform.sax.SAXResult


public class SAXResult implements javax.xml.transform.Result {
// Public Constructors
     public SAXResult( );  
     public SAXResult(org.xml.sax.ContentHandler handler);  
// Public Constants
     public static final String FEATURE;  ="http://javax.xml.transform.sax.SAXResult/feature" 
// Public Instance Methods
     public org.xml.sax.ContentHandler getHandler( );              default:null
     public org.xml.sax.ext.LexicalHandler getLexicalHandler( );   default:null
     public void setHandler(org.xml.sax.ContentHandler handler);  
     public void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler);  
// Methods Implementing Result
     public String getSystemId( );                                 default:null
     public void setSystemId(String systemId);  
}

    Team LiB
    Previous Section Next Section