KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > xml > transform > sax > SAXResult

javax.xml.transform.sax
Class SAXResult

java.lang.Object
  extended by javax.xml.transform.sax.SAXResult
All Implemented Interfaces:
Result
See Also:
Top Examples, Source Code

public static final String FEATURE
See Also:
TransformerFactory.getFeature(java.lang.String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public ContentHandler getHandler()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public LexicalHandler getLexicalHandler()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getSystemId()
See Also:
Result
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SAXResult()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SAXResult(ContentHandler handler)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1617]Pipe the document to a SAX parser
By Anonymous on 2005/11/04 20:23:08  Rate
// Pipe the document to a SAX parser 
  
  
 Node root = ..//from somewhere 
  
  
 TransformerFactory factory = TransformerFactory.newInstance  (  ) ; 
 Transformer transformer = factory.newTransformer  (  ) ; 
  
  
 //You should have your own SAX parser, extended from DefaultHandler 
 transformer.transform  ( new DOMSource  ( root ) , new SAXResult  ( new DefaultHandler (  )  )  ) ;


public void setHandler(ContentHandler handler)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLexicalHandler(LexicalHandler handler)
See Also:
ContentHandler
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSystemId(String systemId)
See Also:
Result, ContentHandler
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags