Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
263
The javax.xml.transform.stream.StreamResult Class
All implemented Interfaces: javax.xml.transform.Result
Members
Signature
Public methods
OutputStream
getOutputStream()
String
getSystemId()
Writer
getWriter()
void
setOutputStream(OutputStream
outputStream)
void
setSystemId(File
f)
void
setSystemId(String
systemId)
void
setWriter(Writer
writer)
Overview
The
StreamResult class takes as a construction mechanism either an
OutputStream(like System.out for easy debugging), a java File, a String system ID, or a Writer.
Method Overviews
Almost
all methods in this class are important and its implementation depends upon
your. The setter methods are used to
create a StreamResult to set the system id to a result. Ensure that the target
result should be writable.
Example of setSystemId(String systemId)
newTransformer() method is used to set the system identifier for this
Result.
If the Result is not to be written to a file, the system identifier is
optional. The application may still want to provide one, however, for use in
error messages and warnings, or to resolve relative output identifiers.
StreamResultResult
result = new StreamResult();
result.setSystemId(systemId);
//Where systemId would be The system identifier as a URI string.