This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.xml.transform.sax
class SAXResult

java.lang.Object extended by javax.xml.transform.sax.SAXResult
All Implemented Interfaces:
Result
Direct Known Subclasses:
JAXBResult

Most common way to construct:

ContentHandler contentHandler = …;

SAXResult result = new SAXResult(contentHandler);

Based on 6 examples


public class SAXResult
extends Object
implements Result

Acts as an holder for a transformation Result.


Field Summary
static String FEATURE
          If javax.xml.transform.TransformerFactory.getFeature returns true when passed this value as an argument, the Transformer supports Result output of this type.
 
Constructor Summary

          Zero-argument default constructor.

          Create a SAXResult that targets a SAX2 org.xml.sax.ContentHandler.
 
Method Summary
 ContentHandler

          Get the org.xml.sax.ContentHandler that is the Result.
 LexicalHandler

          Get a SAX2 org.xml.sax.ext.LexicalHandler for the output.
 String

          Get the system identifier that was set with setSystemId.
 void

          Set the target to be a SAX2 org.xml.sax.ContentHandler.
 void

          Set the SAX2 org.xml.sax.ext.LexicalHandler for the output.
 void
setSystemId(String systemId)

          Method setSystemId Set the systemID that may be used in association with the org.xml.sax.ContentHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURE

public static final String FEATURE
If {@link javax.xml.transform.TransformerFactory#getFeature} returns true when passed this value as an argument, the Transformer supports Result output of this type.
Constructor Detail

SAXResult

public SAXResult()
Zero-argument default constructor.


SAXResult

public SAXResult(ContentHandler handler)
Create a SAXResult that targets a SAX2 {@link org.xml.sax.ContentHandler}.

Parameters:
handler - Must be a non-null ContentHandler reference.
Method Detail

getHandler

public ContentHandler getHandler()
Get the {@link org.xml.sax.ContentHandler} that is the Result.

Returns:
The ContentHandler that is to be transformation output.

getLexicalHandler

public LexicalHandler getLexicalHandler()
Get a SAX2 {@link org.xml.sax.ext.LexicalHandler} for the output.

Returns:
A LexicalHandler, or null.

getSystemId

public String getSystemId()
Get the system identifier that was set with setSystemId.

Returns:
The system identifier that was set with setSystemId, or null if setSystemId was not called.

setHandler

public void setHandler(ContentHandler handler)
Set the target to be a SAX2 {@link org.xml.sax.ContentHandler}.

Parameters:
handler - Must be a non-null ContentHandler reference.

setLexicalHandler

public void setLexicalHandler(LexicalHandler handler)
Set the SAX2 {@link org.xml.sax.ext.LexicalHandler} for the output.

This is needed to handle XML comments and the like. If the lexical handler is not set, an attempt should be made by the transformer to cast the {@link org.xml.sax.ContentHandler} to a LexicalHandler.

Parameters:
handler - A non-null LexicalHandler for handling lexical parse events.

setSystemId

public void setSystemId(String systemId)
Method setSystemId Set the systemID that may be used in association with the {@link org.xml.sax.ContentHandler}.

Parameters:
systemId - The system identifier as a URI string.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.