21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package javax.xml.transform.stax; 27 28 import javax.xml.stream.XMLEventWriter; 29 import javax.xml.stream.XMLStreamWriter; 30 import javax.xml.transform.Result; 31 32 /** 33 * <p>Acts as a holder for an XML {@link Result} in the 34 * form of a StAX writer,i.e. 35 * {@link XMLStreamWriter} or {@link XMLEventWriter}. 36 * <code>StAXResult</code> can be used in all cases that accept 37 * a <code>Result</code>, e.g. {@link javax.xml.transform.Transformer}, 38 * {@link javax.xml.validation.Validator} which accept 39 * <code>Result</code> as input. 40 * 41 * @author <a href="mailto:Neeraj.Bajaj@Sun.com">Neeraj Bajaj</a> 42 * @author <a href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor</a> 43 * 44 * @see <a href="http://jcp.org/en/jsr/detail?id=173"> 45 * JSR 173: Streaming API for XML</a> 46 * @see XMLStreamWriter 47 * @see XMLEventWriter 48 * 49 * @since 1.6 50 */ 51 public class StAXResult implements Result { 52 /** If {@link javax.xml.transform.TransformerFactory#getFeature(String name)} 53 * returns true when passed this value as an argument, 54 * the Transformer supports Result output of this type. 55 */ 56 public static final String FEATURE = 57 "http://javax.xml.transform.stax.StAXResult/feature"; 58 59 /** 60 * <p><code>XMLEventWriter</code> to be used for 61 * <code>Result</code> output.</p> 62 */ | 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package javax.xml.transform.stax; 27 28 import javax.xml.stream.XMLEventWriter; 29 import javax.xml.stream.XMLStreamWriter; 30 import javax.xml.transform.Result; 31 32 /** 33 * <p>Acts as a holder for an XML {@link Result} in the 34 * form of a StAX writer,i.e. 35 * {@link XMLStreamWriter} or {@link XMLEventWriter}. 36 * <code>StAXResult</code> can be used in all cases that accept 37 * a <code>Result</code>, e.g. {@link javax.xml.transform.Transformer}, 38 * {@link javax.xml.validation.Validator} which accept 39 * <code>Result</code> as input. 40 * 41 * @author Neeraj Bajaj 42 * @author Jeff Suttor 43 * 44 * @see <a href="http://jcp.org/en/jsr/detail?id=173"> 45 * JSR 173: Streaming API for XML</a> 46 * @see XMLStreamWriter 47 * @see XMLEventWriter 48 * 49 * @since 1.6 50 */ 51 public class StAXResult implements Result { 52 /** If {@link javax.xml.transform.TransformerFactory#getFeature(String name)} 53 * returns true when passed this value as an argument, 54 * the Transformer supports Result output of this type. 55 */ 56 public static final String FEATURE = 57 "http://javax.xml.transform.stax.StAXResult/feature"; 58 59 /** 60 * <p><code>XMLEventWriter</code> to be used for 61 * <code>Result</code> output.</p> 62 */ |