public class TranscoderOutput
extends java.lang.Object
Transcoder
.Modifier and Type | Field and Description |
---|---|
protected Document |
document
The optional output as XML Document.
|
protected java.io.OutputStream |
ostream
The optional output has a byte stream.
|
protected java.lang.String |
uri
The optional output as a URI.
|
protected java.io.Writer |
writer
The optional output as a character stream.
|
protected org.xml.sax.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(java.io.OutputStream ostream)
Constructs a new
TranscoderOutput with the specified
byte stream output. |
TranscoderOutput(java.lang.String uri)
Constructs a new
TranscoderOutput with the specified uri. |
TranscoderOutput(java.io.Writer writer)
Constructs a new
TranscoderOutput with the specified
character stream. |
TranscoderOutput(org.xml.sax.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.
|
java.io.OutputStream |
getOutputStream()
Returns the output of this transcoder as a byte stream or null
if none was supplied.
|
java.lang.String |
getURI()
Returns the output of this transcoder as a URI or null if none
was supplied.
|
java.io.Writer |
getWriter()
Returns the output of this transcoder as a character stream or null
if none was supplied.
|
org.xml.sax.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(java.io.OutputStream ostream)
Sets the output of this transcoder output with the specified
byte stream.
|
void |
setURI(java.lang.String uri)
Sets the output of this transcoder output with the specified URI.
|
void |
setWriter(java.io.Writer writer)
Sets the output of this transcoder output with the specified
character stream.
|
void |
setXMLFilter(org.xml.sax.XMLFilter xmlFilter)
Sets the output of this transcoder output with the specified
XML filter.
|
protected org.xml.sax.XMLFilter xmlFilter
protected java.io.OutputStream ostream
protected java.io.Writer writer
protected Document document
protected java.lang.String uri
public TranscoderOutput()
TranscoderOutput
.public TranscoderOutput(org.xml.sax.XMLFilter xmlFilter)
TranscoderOutput
with the specified
XML filter.xmlFilter
- the XML filter of this transcoder outputpublic TranscoderOutput(java.io.OutputStream ostream)
TranscoderOutput
with the specified
byte stream output.ostream
- the byte stream of this transcoder outputpublic TranscoderOutput(java.io.Writer writer)
TranscoderOutput
with the specified
character stream.writer
- the character stream of this transcoder outputpublic TranscoderOutput(Document document)
TranscoderOutput
with the specified Document.document
- the Document of this transcoder outputpublic TranscoderOutput(java.lang.String uri)
TranscoderOutput
with the specified uri.uri
- the URI of this transcoder outputpublic void setXMLFilter(org.xml.sax.XMLFilter xmlFilter)
xmlFilter
- the XML filter of this transcoder outputpublic org.xml.sax.XMLFilter getXMLFilter()
public void setOutputStream(java.io.OutputStream ostream)
ostream
- the byte stream of this transcoder outputpublic java.io.OutputStream getOutputStream()
public void setWriter(java.io.Writer writer)
writer
- the character stream of this transcoder outputpublic java.io.Writer getWriter()
public void setDocument(Document document)
document
- the document of this transcoder outputpublic Document getDocument()
public void setURI(java.lang.String uri)
uri
- the URI of this transcoder outputpublic java.lang.String getURI()
Copyright © 2022 Apache Software Foundation. All Rights Reserved.