public class TranscoderOutput extends Object
Modifier and Type | Field and Description |
---|---|
protected Document |
document
The optional output as XML Document.
|
protected OutputStream |
ostream
The optional output has a byte stream.
|
protected String |
uri
The optional output as a URI.
|
protected Writer |
writer
The optional output as a character stream.
|
protected XMLFilter |
xmlFilter
The optional XML filter where to send SAX events.
|
Constructor and Description |
---|
TranscoderOutput()
Constructs a new empty TranscoderOutput.
|
TranscoderOutput(Document document)
Constructs a new TranscoderOutput with the specified Document.
|
TranscoderOutput(OutputStream ostream)
Constructs a new TranscoderOutput with the specified
byte stream output.
|
TranscoderOutput(String uri)
Constructs a new TranscoderOutput with the specified uri.
|
TranscoderOutput(Writer writer)
Constructs a new TranscoderOutput with the specified
character stream.
|
TranscoderOutput(XMLFilter xmlFilter)
Constructs a new TranscoderOutput with the specified
XML filter.
|
Modifier and Type | Method and Description |
---|---|
Document |
getDocument()
Returns the output of this transcoder as a document or null if
none was supplied.
|
OutputStream |
getOutputStream()
Returns the output of this transcoder as a byte stream or null
if none was supplied.
|
String |
getURI()
Returns the output of this transcoder as a URI or null if none
was supplied.
|
Writer |
getWriter()
Returns the output of this transcoder as a character stream or null
if none was supplied.
|
XMLFilter |
getXMLFilter()
Returns the output of this transcoder as a XML filter or null
if none was supplied.
|
void |
setDocument(Document document)
Sets the output of this transcoder output with the specified
document.
|
void |
setOutputStream(OutputStream ostream)
Sets the output of this transcoder output with the specified
byte stream.
|
void |
setURI(String uri)
Sets the output of this transcoder output with the specified URI.
|
void |
setWriter(Writer writer)
Sets the output of this transcoder output with the specified
character stream.
|
void |
setXMLFilter(XMLFilter xmlFilter)
Sets the output of this transcoder output with the specified
XML filter.
|
protected XMLFilter xmlFilter
protected OutputStream ostream
protected Writer writer
protected Document document
protected String uri
public TranscoderOutput()
public TranscoderOutput(XMLFilter xmlFilter)
xmlFilter
- the XML filter of this transcoder outputpublic TranscoderOutput(OutputStream ostream)
ostream
- the byte stream of this transcoder outputpublic TranscoderOutput(Writer writer)
writer
- the character stream of this transcoder outputpublic TranscoderOutput(Document document)
document
- the Document of this transcoder outputpublic TranscoderOutput(String uri)
uri
- the URI of this transcoder outputpublic void setXMLFilter(XMLFilter xmlFilter)
xmlFilter
- the XML filter of this transcoder outputpublic XMLFilter getXMLFilter()
public void setOutputStream(OutputStream ostream)
ostream
- the byte stream of this transcoder outputpublic OutputStream getOutputStream()
public void setWriter(Writer writer)
writer
- the character stream of this transcoder outputpublic Writer getWriter()
public void setDocument(Document document)
document
- the document of this transcoder outputpublic Document getDocument()
public void setURI(String uri)
uri
- the URI of this transcoder outputpublic String getURI()
Copyright ? 2009 Apache Software Foundation. All Rights Reserved.