Class TranscoderInput
java.lang.Object
org.apache.batik.transcoder.TranscoderInput
This class represents a generic input of a
Transcoder.- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DocumentThe optional input as XML Document.protected InputStreamThe optional input has a byte stream.protected ReaderThe optional input as a character stream.protected StringThe optional input as a URI.protected XMLReaderThe optional XML reader to receive SAX events. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new emptyTranscoderInput.TranscoderInput(InputStream istream) Constructs a newTranscoderInputwith the specified byte stream input.TranscoderInput(Reader reader) Constructs a newTranscoderInputwith the specified character stream.TranscoderInput(String uri) Constructs a newTranscoderInputwith the specified uri.TranscoderInput(Document document) Constructs a newTranscoderInputwith the specified Document.TranscoderInput(XMLReader xmlReader) Constructs a newTranscoderInputwith the specified XML reader. -
Method Summary
Modifier and TypeMethodDescriptionReturns the input of this transcoder as a document or null if none was supplied.Returns the input of this transcoder as a byte stream or null if none was supplied.Returns the input of this transcoder as a character stream or null if none was supplied.getURI()Returns the input of this transcoder as a URI or null if none was supplied.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.voidSets the input of this transcoder input with the specified character stream.voidSets 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 Details
-
xmlReader
The optional XML reader to receive SAX events. -
istream
The optional input has a byte stream. -
reader
The optional input as a character stream. -
document
The optional input as XML Document. -
uri
The optional input as a URI.
-
-
Constructor Details
-
TranscoderInput
public TranscoderInput()Constructs a new emptyTranscoderInput. -
TranscoderInput
Constructs a newTranscoderInputwith the specified XML reader.- Parameters:
xmlReader- the XML reader of this transcoder input
-
TranscoderInput
Constructs a newTranscoderInputwith the specified byte stream input.- Parameters:
istream- the byte stream of this transcoder input
-
TranscoderInput
Constructs a newTranscoderInputwith the specified character stream.- Parameters:
reader- the character stream of this transcoder input
-
TranscoderInput
Constructs a newTranscoderInputwith the specified Document.- Parameters:
document- the Document of this transcoder input
-
TranscoderInput
Constructs a newTranscoderInputwith the specified uri.- Parameters:
uri- the URI of this transcoder input
-
-
Method Details
-
setXMLReader
Sets the input of this transcoder input with the specified XML reader.- Parameters:
xmlReader- the XML reader of this transcoder input
-
getXMLReader
Returns the XML reader of this transcoder or null if none was supplied. -
setInputStream
Sets the input of this transcoder input with the specified byte stream.- Parameters:
istream- the byte stream of this transcoder input
-
getInputStream
Returns the input of this transcoder as a byte stream or null if none was supplied. -
setReader
Sets the input of this transcoder input with the specified character stream.- Parameters:
reader- the character stream of this transcoder input
-
getReader
Returns the input of this transcoder as a character stream or null if none was supplied. -
setDocument
Sets the input of this transcoder input with the specified document.- Parameters:
document- the document of this transcoder input
-
getDocument
Returns the input of this transcoder as a document or null if none was supplied. -
setURI
Sets the input of this transcoder input with the specified URI.- Parameters:
uri- the URI of this transcoder input
-
getURI
Returns the input of this transcoder as a URI or null if none was supplied.
-