public class ExpandedStreamResult
extends java.lang.Object
Constructor and Description |
---|
ExpandedStreamResult(Configuration config,
javax.xml.transform.stream.StreamResult result,
java.util.Properties outputProperties) |
Modifier and Type | Method and Description |
---|---|
CharacterSet |
getCharacterSet()
Get the character set
|
java.io.OutputStream |
getOutputStream()
Get the output stream
|
java.io.Writer |
getWriter()
Get the output writer
|
static java.io.File |
makeWritableOutputFile(java.lang.String uriString) |
protected java.io.OutputStream |
obtainOutputStream() |
java.io.Writer |
obtainWriter()
Make a Writer for this Emitter to use, given a StreamResult.
|
void |
setWriter(java.io.Writer writer)
Set the output destination as a character stream
|
boolean |
usesWriter()
Determine whether the Emitter wants a Writer for character output or
an OutputStream for binary output.
|
public ExpandedStreamResult(Configuration config, javax.xml.transform.stream.StreamResult result, java.util.Properties outputProperties) throws XPathException
XPathException
public java.io.Writer obtainWriter() throws XPathException
XPathException
- if an error occursprotected java.io.OutputStream obtainOutputStream() throws XPathException
XPathException
public static java.io.File makeWritableOutputFile(java.lang.String uriString) throws java.net.URISyntaxException, XPathException
java.net.URISyntaxException
XPathException
public boolean usesWriter()
public void setWriter(java.io.Writer writer) throws XPathException
writer
- the Writer to use as an output destinationXPathException
- if an error occurspublic java.io.Writer getWriter()
public java.io.OutputStream getOutputStream()
public CharacterSet getCharacterSet()
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.