Class TranscoderOutput
java.lang.Object
org.apache.batik.transcoder.TranscoderOutput
This class represents a single output for a
Transcoder.- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DocumentThe optional output as XML Document.protected OutputStreamThe optional output has a byte stream.protected StringThe optional output as a URI.protected WriterThe optional output as a character stream.protected XMLFilterThe optional XML filter where to send SAX events. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new emptyTranscoderOutput.TranscoderOutput(OutputStream ostream) Constructs a newTranscoderOutputwith the specified byte stream output.TranscoderOutput(Writer writer) Constructs a newTranscoderOutputwith the specified character stream.TranscoderOutput(String uri) Constructs a newTranscoderOutputwith the specified uri.TranscoderOutput(Document document) Constructs a newTranscoderOutputwith the specified Document.TranscoderOutput(XMLFilter xmlFilter) Constructs a newTranscoderOutputwith 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.voidsetDocument(Document document) Sets the output of this transcoder output with the specified document.voidsetOutputStream(OutputStream ostream) Sets the output of this transcoder output with the specified byte stream.voidSets the output of this transcoder output with the specified URI.voidSets the output of this transcoder output with the specified character stream.voidsetXMLFilter(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 newTranscoderOutputwith the specified XML filter.- Parameters:
xmlFilter- the XML filter of this transcoder output
-
TranscoderOutput
Constructs a newTranscoderOutputwith the specified byte stream output.- Parameters:
ostream- the byte stream of this transcoder output
-
TranscoderOutput
Constructs a newTranscoderOutputwith the specified character stream.- Parameters:
writer- the character stream of this transcoder output
-
TranscoderOutput
Constructs a newTranscoderOutputwith the specified Document.- Parameters:
document- the Document of this transcoder output
-
TranscoderOutput
Constructs a newTranscoderOutputwith 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.
-