public class StreamResult extends Object implements Result
Modifier and Type | Field and Description |
---|---|
static String |
FEATURE
Factory feature indicating that stream results are supported.
|
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
StreamResult()
Default constructor.
|
StreamResult(File file)
Constructor with a system ID specified as a File object.
|
StreamResult(OutputStream stream)
Constructor with an output stream.
|
StreamResult(String systemID)
Constructor with a system ID.
|
StreamResult(Writer writer)
Constructor with a writer.
|
Modifier and Type | Method and Description |
---|---|
OutputStream |
getOutputStream()
Returns the target output stream.
|
String |
getSystemId()
Returns the system ID.
|
Writer |
getWriter()
Returns the target writer.
|
void |
setOutputStream(OutputStream outputStream)
Sets the target output stream.
|
void |
setSystemId(File f)
Sets the system ID from a File reference.
|
void |
setSystemId(String systemID)
Sets the system ID.
|
void |
setWriter(Writer writer)
Sets the target writer.
|
public static final String FEATURE
public StreamResult()
public StreamResult(OutputStream stream)
public StreamResult(Writer writer)
public StreamResult(String systemID)
public StreamResult(File file)
public void setOutputStream(OutputStream outputStream)
public OutputStream getOutputStream()
public void setWriter(Writer writer)
public void setSystemId(String systemID)
setSystemId
in interface Result
systemID
- the system ID URIpublic void setSystemId(File f)
public String getSystemId()
getSystemId
in interface Result