API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.transform.stream. StreamResult View Source
Author(s)
Jeff Suttor
Since
Version
Serial
Hierarchy
 Object
      StreamResult
Implements
 Result
Subclasses
Description
public class StreamResult
  Acts as an holder for a transformation result, which may be XML, plain Text, HTML, or some other form of markup.
See also:   
Constructors
public StreamResult ()
Zero-argument default constructor.
public StreamResult (File f)
  Construct a StreamResult from a File.
public StreamResult (OutputStream outputStream)
  Construct a StreamResult from a byte stream.
public StreamResult (String systemId)
  Construct a StreamResult from a URL.
public StreamResult (Writer writer)
  Construct a StreamResult from a character stream.
Methods
Hide/Show inherited methods
public OutputStream getOutputStream ()
  Get the byte stream that was set with setOutputStream.
public String getSystemId () [Specified in Result]
  Get the system identifier that was set with setSystemId.
public Writer getWriter ()
  Get the character stream that was set with setWriter.
public void setOutputStream (OutputStream outputStream)
  Set the ByteStream that is to be written to.
public void setSystemId (File f)
  Set the system ID from a File reference.
public void setSystemId (String systemId) [Specified in Result]
  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).
public void setWriter (Writer writer)
  Set the writer that is to receive the result.
Fields
Hide/Show inherited fields
publicfinalstatic String FEATURE = "http://javax.xml.transform.stream.StreamResult/feature"
If TransformerFactory.getFeature(java.lang.String) returns true when passed this value as an argument, the Transformer supports Result output of this type.
publicfinalstatic String PI_DISABLE_OUTPUT_ESCAPING = "javax.xml.transform.disable-output-escaping" [Inherited From Result]
  The name of the processing instruction that is sent if the result tree disables output escaping.
publicfinalstatic String PI_ENABLE_OUTPUT_ESCAPING = "javax.xml.transform.enable-output-escaping" [Inherited From Result]
  The name of the processing instruction that is sent if the result tree enables output escaping at some point after having received a PI_DISABLE_OUTPUT_ESCAPING processing instruction.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar