Package org.apache.batik.transcoder
Class TranscoderOutput
java.lang.Object
org.apache.batik.transcoder.TranscoderOutput
This class represents a single output for a
Transcoder
.- Version:
- $Id: TranscoderOutput.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Document
The optional output as XML Document.protected OutputStream
The optional output has a byte stream.protected String
The optional output as a URI.protected Writer
The optional output as a character stream.protected XMLFilter
The optional XML filter where to send SAX events. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new emptyTranscoderOutput
.TranscoderOutput
(OutputStream ostream) Constructs a newTranscoderOutput
with the specified byte stream output.TranscoderOutput
(Writer writer) Constructs a newTranscoderOutput
with the specified character stream.TranscoderOutput
(String uri) Constructs a newTranscoderOutput
with the specified uri.TranscoderOutput
(Document document) Constructs a newTranscoderOutput
with the specified Document.TranscoderOutput
(XMLFilter xmlFilter) Constructs a newTranscoderOutput
with the specified XML filter. -
Method Summary
Modifier and TypeMethodDescriptionReturns the output of this transcoder as a document or null if none was supplied.Returns the output of this transcoder as a byte stream or null if none was supplied.getURI()
Returns the output of this transcoder as a URI or null if none was supplied.Returns the output of this transcoder as a character stream or null if none was supplied.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
Sets the output of this transcoder output with the specified URI.void
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.
-
Field Details
-
xmlFilter
The optional XML filter where to send SAX events. -
ostream
The optional output has a byte stream. -
writer
The optional output as a character stream. -
document
The optional output as XML Document. -
uri
The optional output as a URI.
-
-
Constructor Details
-
TranscoderOutput
public TranscoderOutput()Constructs a new emptyTranscoderOutput
. -
TranscoderOutput
Constructs a newTranscoderOutput
with the specified XML filter.- Parameters:
xmlFilter
- the XML filter of this transcoder output
-
TranscoderOutput
Constructs a newTranscoderOutput
with the specified byte stream output.- Parameters:
ostream
- the byte stream of this transcoder output
-
TranscoderOutput
Constructs a newTranscoderOutput
with the specified character stream.- Parameters:
writer
- the character stream of this transcoder output
-
TranscoderOutput
Constructs a newTranscoderOutput
with the specified Document.- Parameters:
document
- the Document of this transcoder output
-
TranscoderOutput
Constructs a newTranscoderOutput
with the specified uri.- Parameters:
uri
- the URI of this transcoder output
-
-
Method Details
-
setXMLFilter
Sets the output of this transcoder output with the specified XML filter.- Parameters:
xmlFilter
- the XML filter of this transcoder output
-
getXMLFilter
Returns the output of this transcoder as a XML filter or null if none was supplied. -
setOutputStream
Sets the output of this transcoder output with the specified byte stream.- Parameters:
ostream
- the byte stream of this transcoder output
-
getOutputStream
Returns the output of this transcoder as a byte stream or null if none was supplied. -
setWriter
Sets the output of this transcoder output with the specified character stream.- Parameters:
writer
- the character stream of this transcoder output
-
getWriter
Returns the output of this transcoder as a character stream or null if none was supplied. -
setDocument
Sets the output of this transcoder output with the specified document.- Parameters:
document
- the document of this transcoder output
-
getDocument
Returns the output of this transcoder as a document or null if none was supplied. -
setURI
Sets the output of this transcoder output with the specified URI.- Parameters:
uri
- the URI of this transcoder output
-
getURI
Returns the output of this transcoder as a URI or null if none was supplied.
-