Package org.apache.batik.transcoder
Class TranscoderOutput
- java.lang.Object
-
- org.apache.batik.transcoder.TranscoderOutput
-
public class TranscoderOutput extends java.lang.ObjectThis class represents a single output for aTranscoder.- Version:
- $Id: TranscoderOutput.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description protected org.w3c.dom.DocumentdocumentThe optional output as XML Document.protected java.io.OutputStreamostreamThe optional output has a byte stream.protected java.lang.StringuriThe optional output as a URI.protected java.io.WriterwriterThe optional output as a character stream.protected org.xml.sax.XMLFilterxmlFilterThe optional XML filter where to send SAX events.
-
Constructor Summary
Constructors Constructor Description TranscoderOutput()Constructs a new emptyTranscoderOutput.TranscoderOutput(java.io.OutputStream ostream)Constructs a newTranscoderOutputwith the specified byte stream output.TranscoderOutput(java.io.Writer writer)Constructs a newTranscoderOutputwith the specified character stream.TranscoderOutput(java.lang.String uri)Constructs a newTranscoderOutputwith the specified uri.TranscoderOutput(org.w3c.dom.Document document)Constructs a newTranscoderOutputwith the specified Document.TranscoderOutput(org.xml.sax.XMLFilter xmlFilter)Constructs a newTranscoderOutputwith the specified XML filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.DocumentgetDocument()Returns the output of this transcoder as a document or null if none was supplied.java.io.OutputStreamgetOutputStream()Returns the output of this transcoder as a byte stream or null if none was supplied.java.lang.StringgetURI()Returns the output of this transcoder as a URI or null if none was supplied.java.io.WritergetWriter()Returns the output of this transcoder as a character stream or null if none was supplied.org.xml.sax.XMLFiltergetXMLFilter()Returns the output of this transcoder as a XML filter or null if none was supplied.voidsetDocument(org.w3c.dom.Document document)Sets the output of this transcoder output with the specified document.voidsetOutputStream(java.io.OutputStream ostream)Sets the output of this transcoder output with the specified byte stream.voidsetURI(java.lang.String uri)Sets the output of this transcoder output with the specified URI.voidsetWriter(java.io.Writer writer)Sets the output of this transcoder output with the specified character stream.voidsetXMLFilter(org.xml.sax.XMLFilter xmlFilter)Sets the output of this transcoder output with the specified XML filter.
-
-
-
Field Detail
-
xmlFilter
protected org.xml.sax.XMLFilter xmlFilter
The optional XML filter where to send SAX events.
-
ostream
protected java.io.OutputStream ostream
The optional output has a byte stream.
-
writer
protected java.io.Writer writer
The optional output as a character stream.
-
document
protected org.w3c.dom.Document document
The optional output as XML Document.
-
uri
protected java.lang.String uri
The optional output as a URI.
-
-
Constructor Detail
-
TranscoderOutput
public TranscoderOutput()
Constructs a new emptyTranscoderOutput.
-
TranscoderOutput
public TranscoderOutput(org.xml.sax.XMLFilter xmlFilter)
Constructs a newTranscoderOutputwith the specified XML filter.- Parameters:
xmlFilter- the XML filter of this transcoder output
-
TranscoderOutput
public TranscoderOutput(java.io.OutputStream ostream)
Constructs a newTranscoderOutputwith the specified byte stream output.- Parameters:
ostream- the byte stream of this transcoder output
-
TranscoderOutput
public TranscoderOutput(java.io.Writer writer)
Constructs a newTranscoderOutputwith the specified character stream.- Parameters:
writer- the character stream of this transcoder output
-
TranscoderOutput
public TranscoderOutput(org.w3c.dom.Document document)
Constructs a newTranscoderOutputwith the specified Document.- Parameters:
document- the Document of this transcoder output
-
TranscoderOutput
public TranscoderOutput(java.lang.String uri)
Constructs a newTranscoderOutputwith the specified uri.- Parameters:
uri- the URI of this transcoder output
-
-
Method Detail
-
setXMLFilter
public void setXMLFilter(org.xml.sax.XMLFilter xmlFilter)
Sets the output of this transcoder output with the specified XML filter.- Parameters:
xmlFilter- the XML filter of this transcoder output
-
getXMLFilter
public org.xml.sax.XMLFilter getXMLFilter()
Returns the output of this transcoder as a XML filter or null if none was supplied.
-
setOutputStream
public void setOutputStream(java.io.OutputStream ostream)
Sets the output of this transcoder output with the specified byte stream.- Parameters:
ostream- the byte stream of this transcoder output
-
getOutputStream
public java.io.OutputStream getOutputStream()
Returns the output of this transcoder as a byte stream or null if none was supplied.
-
setWriter
public void setWriter(java.io.Writer writer)
Sets the output of this transcoder output with the specified character stream.- Parameters:
writer- the character stream of this transcoder output
-
getWriter
public java.io.Writer getWriter()
Returns the output of this transcoder as a character stream or null if none was supplied.
-
setDocument
public void setDocument(org.w3c.dom.Document document)
Sets the output of this transcoder output with the specified document.- Parameters:
document- the document of this transcoder output
-
getDocument
public org.w3c.dom.Document getDocument()
Returns the output of this transcoder as a document or null if none was supplied.
-
setURI
public void setURI(java.lang.String uri)
Sets the output of this transcoder output with the specified URI.- Parameters:
uri- the URI of this transcoder output
-
getURI
public java.lang.String getURI()
Returns the output of this transcoder as a URI or null if none was supplied.
-
-