org.apache.batik.transcoder

Class TranscoderInput

public class TranscoderInput extends Object

This class represents a generic input of a Transcoder.
Field Summary
protected Documentdocument
The optional input as XML Document.
protected InputStreamistream
The optional input has a byte stream.
protected Readerreader
The optional input as a character stream.
protected Stringuri
The optional input as a URI.
protected XMLReaderxmlReader
The optional XML reader to receive SAX events.
Constructor Summary
TranscoderInput()
Constructs a new empty TranscoderInput.
TranscoderInput(XMLReader xmlReader)
Constructs a new TranscoderInput with the specified XML reader.
TranscoderInput(InputStream istream)
Constructs a new TranscoderInput with the specified byte stream input.
TranscoderInput(Reader reader)
Constructs a new TranscoderInput with the specified character stream.
TranscoderInput(Document document)
Constructs a new TranscoderInput with the specified Document.
TranscoderInput(String uri)
Constructs a new TranscoderInput with the specified uri.
Method Summary
DocumentgetDocument()
Returns the input of this transcoder as a document or null if none was supplied.
InputStreamgetInputStream()
Returns the input of this transcoder as a byte stream or null if none was supplied.
ReadergetReader()
Returns the input of this transcoder as a character stream or null if none was supplied.
StringgetURI()
Returns the input of this transcoder as a URI or null if none was supplied.
XMLReadergetXMLReader()
Returns the XML reader of this transcoder or null if none was supplied.
voidsetDocument(Document document)
Sets the input of this transcoder input with the specified document.
voidsetInputStream(InputStream istream)
Sets the input of this transcoder input with the specified byte stream.
voidsetReader(Reader reader)
Sets the input of this transcoder input with the specified character stream.
voidsetURI(String uri)
Sets the input of this transcoder input with the specified URI.
voidsetXMLReader(XMLReader xmlReader)
Sets the input of this transcoder input with the specified XML reader.

Field Detail

document

protected Document document
The optional input as XML Document.

istream

protected InputStream istream
The optional input has a byte stream.

reader

protected Reader reader
The optional input as a character stream.

uri

protected String uri
The optional input as a URI.

xmlReader

protected XMLReader xmlReader
The optional XML reader to receive SAX events.

Constructor Detail

TranscoderInput

public TranscoderInput()
Constructs a new empty TranscoderInput.

TranscoderInput

public TranscoderInput(XMLReader xmlReader)
Constructs a new TranscoderInput with the specified XML reader.

Parameters: xmlReader the XML reader of this transcoder input

TranscoderInput

public TranscoderInput(InputStream istream)
Constructs a new TranscoderInput with the specified byte stream input.

Parameters: istream the byte stream of this transcoder input

TranscoderInput

public TranscoderInput(Reader reader)
Constructs a new TranscoderInput with the specified character stream.

Parameters: reader the character stream of this transcoder input

TranscoderInput

public TranscoderInput(Document document)
Constructs a new TranscoderInput with the specified Document.

Parameters: document the Document of this transcoder input

TranscoderInput

public TranscoderInput(String uri)
Constructs a new TranscoderInput with the specified uri.

Parameters: uri the URI of this transcoder input

Method Detail

getDocument

public Document getDocument()
Returns the input of this transcoder as a document or null if none was supplied.

getInputStream

public InputStream getInputStream()
Returns the input of this transcoder as a byte stream or null if none was supplied.

getReader

public Reader getReader()
Returns the input of this transcoder as a character stream or null if none was supplied.

getURI

public String getURI()
Returns the input of this transcoder as a URI or null if none was supplied.

getXMLReader

public XMLReader getXMLReader()
Returns the XML reader of this transcoder or null if none was supplied.

setDocument

public void setDocument(Document document)
Sets the input of this transcoder input with the specified document.

Parameters: document the document of this transcoder input

setInputStream

public void setInputStream(InputStream istream)
Sets the input of this transcoder input with the specified byte stream.

Parameters: istream the byte stream of this transcoder input

setReader

public void setReader(Reader reader)
Sets the input of this transcoder input with the specified character stream.

Parameters: reader the character stream of this transcoder input

setURI

public void setURI(String uri)
Sets the input of this transcoder input with the specified URI.

Parameters: uri the URI of this transcoder input

setXMLReader

public void setXMLReader(XMLReader xmlReader)
Sets the input of this transcoder input with the specified XML reader.

Parameters: xmlReader the XML reader of this transcoder input

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.