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.stax
class StAXResult

java.lang.Object extended by javax.xml.transform.stax.StAXResult
All Implemented Interfaces:
Result

public class StAXResult
extends Object
implements Result

Acts as a holder for an XML {@link Result} in the form of a StAX writer,i.e. {@link XMLStreamWriter} or {@link XMLEventWriter}. StAXResult can be used in all cases that accept a Result, e.g. {@link javax.xml.transform.Transformer}, {@link javax.xml.validation.Validator} which accept Result as input.


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
StAXResult(XMLEventWriter xmlEventWriter)

          Creates a new instance of a StAXResult by supplying an javax.xml.stream.XMLEventWriter.
StAXResult(XMLStreamWriter xmlStreamWriter)

          Creates a new instance of a StAXResult by supplying an javax.xml.stream.XMLStreamWriter.
 
Method Summary
 String

          The returned system identifier is always null.
 XMLEventWriter

          Get the XMLEventWriter used by this StAXResult.
 XMLStreamWriter

          Get the XMLStreamWriter used by this StAXResult.
 void
setSystemId(String systemId)

          In the context of a StAXResult, it is not appropriate to explicitly set the system identifier.
 
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(String name)} returns true when passed this value as an argument, the Transformer supports Result output of this type.
Constructor Detail

StAXResult

public StAXResult(XMLEventWriter xmlEventWriter)

Creates a new instance of a StAXResult by supplying an {@link XMLEventWriter}.

XMLEventWriter must be a non-null reference.

Parameters:
xmlEventWriter - XMLEventWriter used to create this StAXResult.

StAXResult

public StAXResult(XMLStreamWriter xmlStreamWriter)

Creates a new instance of a StAXResult by supplying an {@link XMLStreamWriter}.

XMLStreamWriter must be a non-null reference.

Parameters:
xmlStreamWriter - XMLStreamWriter used to create this StAXResult.
Method Detail

getSystemId

public String getSystemId()

The returned system identifier is always null.

Returns:
The returned system identifier is always null.

getXMLEventWriter

public XMLEventWriter getXMLEventWriter()

Get the XMLEventWriter used by this StAXResult.

XMLEventWriter will be null if this StAXResult was created with a XMLStreamWriter.

Returns:
XMLEventWriter used by this StAXResult.

getXMLStreamWriter

public XMLStreamWriter getXMLStreamWriter()

Get the XMLStreamWriter used by this StAXResult.

XMLStreamWriter will be null if this StAXResult was created with a XMLEventWriter.

Returns:
XMLStreamWriter used by this StAXResult.

setSystemId

public void setSystemId(String systemId)

In the context of a StAXResult, it is not appropriate to explicitly set the system identifier. The XMLEventWriter or XMLStreamWriter used to construct this StAXResult determines the system identifier of the XML result.

An {@link UnsupportedOperationException} is always thrown by this method.

Parameters:
systemId - Ignored.


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/.