public class ExpandedStreamResult extends Object
| Constructor and Description |
|---|
ExpandedStreamResult(Configuration config,
StreamResult result,
Properties outputProperties) |
| Modifier and Type | Method and Description |
|---|---|
CharacterSet |
getCharacterSet()
Get the character set
|
OutputStream |
getOutputStream()
Get the output stream
|
Writer |
getWriter()
Get the output writer
|
protected OutputStream |
obtainOutputStream() |
Writer |
obtainWriter()
Make a Writer for this Emitter to use, given a StreamResult.
|
void |
setWriter(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, StreamResult result, Properties outputProperties) throws XPathException
XPathExceptionpublic Writer obtainWriter() throws XPathException
XPathException - if an error occursprotected OutputStream obtainOutputStream() throws XPathException
XPathExceptionpublic boolean usesWriter()
public void setWriter(Writer writer) throws XPathException
writer - the Writer to use as an output destinationXPathException - if an error occurspublic Writer getWriter()
public OutputStream getOutputStream()
public CharacterSet getCharacterSet()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.