Package org.apache.batik.transcoder
Class TranscoderInput
java.lang.Object
org.apache.batik.transcoder.TranscoderInput
This class represents a generic input of a
Transcoder
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Document
The optional input as XML Document.protected InputStream
The optional input has a byte stream.protected Reader
The optional input as a character stream.protected String
The optional input as a URI.protected XMLReader
The optional XML reader to receive SAX events. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new emptyTranscoderInput
.TranscoderInput
(InputStream istream) Constructs a newTranscoderInput
with the specified byte stream input.TranscoderInput
(Reader reader) Constructs a newTranscoderInput
with the specified character stream.TranscoderInput
(String uri) Constructs a newTranscoderInput
with the specified uri.TranscoderInput
(Document document) Constructs a newTranscoderInput
with the specified Document.TranscoderInput
(XMLReader xmlReader) Constructs a newTranscoderInput
with 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.void
setDocument
(Document document) Sets the input of this transcoder input with the specified document.void
setInputStream
(InputStream istream) Sets the input of this transcoder input with the specified byte stream.void
Sets the input of this transcoder input with the specified character stream.void
Sets the input of this transcoder input with the specified URI.void
setXMLReader
(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 newTranscoderInput
with the specified XML reader.- Parameters:
xmlReader
- the XML reader of this transcoder input
-
TranscoderInput
Constructs a newTranscoderInput
with the specified byte stream input.- Parameters:
istream
- the byte stream of this transcoder input
-
TranscoderInput
Constructs a newTranscoderInput
with the specified character stream.- Parameters:
reader
- the character stream of this transcoder input
-
TranscoderInput
Constructs a newTranscoderInput
with the specified Document.- Parameters:
document
- the Document of this transcoder input
-
TranscoderInput
Constructs a newTranscoderInput
with 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.
-