TemplatesHandler


TemplatesHandler javax.xml.transform.sax

Java 1.4

This interface extends org.xml.sax.ContentHandler and adds a getTemplates( ) method. An object that implements this interface can be used to receive method calls from some source of SAX events and process those events (as a XSL stylesheet) into a Templates object. Obtain a TemplatesHandler from a SAXTransformerFactory . Register it with the setContentHandler( ) method of an org.xml.sax.XMLReader and invoke the parse( ) method of the reader. When parse( ) returns, call the getTemplates( ) method to obtain the Templates object.

Figure 20-14. javax.xml.transform.sax.TemplatesHandler

 public interface  TemplatesHandler  extends org.xml.sax.ContentHandler {  // Public Instance Methods  String  getSystemId  ( );        javax.xml.transform.Templates  getTemplates  ( );        void  setSystemId  (String  systemID  );   } 

Returned By

SAXTransformerFactory.newTemplatesHandler( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net