19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
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.stream;
27
28 import javax.xml.transform.Result;
29
30 import java.io.File;
31 import java.io.OutputStream;
32 import java.io.Writer;
33 import java.net.MalformedURLException;
34
35 /**
36 * <p>Acts as an holder for a transformation result,
37 * which may be XML, plain Text, HTML, or some other form of markup.</p>
38 *
39 * @author <a href="Jeff.Suttor@Sun.com">Jeff Suttor</a>
40 * @since 1.4
41 */
42 public class StreamResult implements Result {
43
44 /** If {@link javax.xml.transform.TransformerFactory#getFeature}
45 * returns true when passed this value as an argument,
46 * the Transformer supports Result output of this type.
47 */
48 public static final String FEATURE =
49 "http://javax.xml.transform.stream.StreamResult/feature";
50
51 /**
52 * Zero-argument default constructor.
53 */
54 public StreamResult() {
55 }
56
57 /**
58 * Construct a StreamResult from a byte stream. Normally,
59 * a stream should be used rather than a reader, so that
|
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
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.stream;
27
28 import javax.xml.transform.Result;
29
30 import java.io.File;
31 import java.io.OutputStream;
32 import java.io.Writer;
33 import java.net.MalformedURLException;
34
35 /**
36 * <p>Acts as an holder for a transformation result,
37 * which may be XML, plain Text, HTML, or some other form of markup.</p>
38 *
39 * @author Jeff Suttor
40 * @since 1.4
41 */
42 public class StreamResult implements Result {
43
44 /** If {@link javax.xml.transform.TransformerFactory#getFeature}
45 * returns true when passed this value as an argument,
46 * the Transformer supports Result output of this type.
47 */
48 public static final String FEATURE =
49 "http://javax.xml.transform.stream.StreamResult/feature";
50
51 /**
52 * Zero-argument default constructor.
53 */
54 public StreamResult() {
55 }
56
57 /**
58 * Construct a StreamResult from a byte stream. Normally,
59 * a stream should be used rather than a reader, so that
|