Name
TemplatesHandler
Synopsis
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( )
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.