September 2001
Intermediate to advanced
528 pages
13h 46m
English
Package: javax.xml.transform.sax
This package defines how to perform transformations using SAX. Example usages can be found in Chapter 5.
This
class makes it possible to emit SAX events as the result of a
transformation. The ContentHandler parameter
receives these events.
public class SAXResult
implements Result {
public static final String FEATURE =
"http://javax.xml.transform.sax.SAXResult/feature";
public SAXResult(ContentHandler handler);
public SAXResult( );
public ContentHandler getHandler( );
public LexicalHandler getLexicalHandler( );
public String getSystemId( );
public void setHandler(ContentHandler handler);
public void setLexicalHandler(LexicalHandler handler);
public void setSystemId(String systemId);
}
This
allows output from a SAX parser to be fed into an XSLT processor for
transformation. It is also used to build Templates
or Transformer objects using
TransformerFactory.
public class SAXSource
implements Source {
public static final String FEATURE =
"http://javax.xml.transform.sax.SAXSource/feature";
public SAXSource(XMLReader reader, InputSource inputSource);
public SAXSource(InputSource inputSource);
public SAXSource( );
public InputSource getInputSource( );
public String getSystemId( );
public XMLReader getXMLReader( );
public void setInputSource(InputSource inputSource);
public void setSystemId(String systemId);
public void setXMLReader(XMLReader reader);
public static InputSource sourceToInputSource(Source source);
}