|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.xml.transform.stream.StreamResult
Acts as an holder for a transformation result, which may be XML, plain Text, HTML, or some other form of markup.
Field Summary | |
static String |
FEATURE
If TransformerFactory.getFeature(java.lang.String)
returns true when passed this value as an argument,
the Transformer supports Result output of this type. |
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
StreamResult()
Zero-argument default constructor. |
|
StreamResult(File f)
Construct a StreamResult from a File. |
|
StreamResult(OutputStream outputStream)
Construct a StreamResult from a byte stream. |
|
StreamResult(String systemId)
Construct a StreamResult from a URL. |
|
StreamResult(Writer writer)
Construct a StreamResult from a character stream. |
Method Summary | |
OutputStream |
getOutputStream()
Get the byte stream that was set with setOutputStream. |
String |
getSystemId()
Get the system identifier that was set with setSystemId. |
Writer |
getWriter()
Get the character stream that was set with setWriter. |
void |
setOutputStream(OutputStream outputStream)
Set the ByteStream that is to be written to. |
void |
setSystemId(File f)
Set the system ID from a File reference. |
void |
setSystemId(String systemId)
Set the systemID that may be used in association with the byte or character stream, or, if neither is set, use this value as a writeable URI (probably a file name). |
void |
setWriter(Writer writer)
Set the writer that is to receive the result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String FEATURE
TransformerFactory.getFeature(java.lang.String)
returns true when passed this value as an argument,
the Transformer supports Result output of this type.
Constructor Detail |
public StreamResult()
public StreamResult(OutputStream outputStream)
outputStream
- A valid OutputStream reference.public StreamResult(Writer writer)
writer
- A valid Writer reference.public StreamResult(String systemId)
systemId
- Must be a String that conforms to the URI syntax.public StreamResult(File f)
f
- Must a non-null File reference.Method Detail |
public void setOutputStream(OutputStream outputStream)
outputStream
- A valid OutputStream reference.public OutputStream getOutputStream()
public void setWriter(Writer writer)
writer
- A valid Writer reference.public Writer getWriter()
public void setSystemId(String systemId)
setSystemId
in interface Result
systemId
- The system identifier as a URI string.public void setSystemId(File f)
f
- Must a non-null File reference.public String getSystemId()
getSystemId
in interface Result
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.