public class TranscoderInput extends Object
Transcoder.| Modifier and Type | Field and Description |
|---|---|
protected Document |
document
The optional input as XML Document.
|
protected InputStream |
istream
The optional input has a byte stream.
|
protected Reader |
reader
The optional input as a character stream.
|
protected String |
uri
The optional input as a URI.
|
protected XMLReader |
xmlReader
The optional XML reader to receive SAX events.
|
| Constructor and Description |
|---|
TranscoderInput()
Constructs a new empty
TranscoderInput. |
TranscoderInput(Document document)
Constructs a new
TranscoderInput with the specified Document. |
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(String uri)
Constructs a new
TranscoderInput with the specified uri. |
TranscoderInput(XMLReader xmlReader)
Constructs a new
TranscoderInput with the specified
XML reader. |
| Modifier and Type | Method and Description |
|---|---|
Document |
getDocument()
Returns the input of this transcoder as a document or null if
none was supplied.
|
InputStream |
getInputStream()
Returns the input of this transcoder as a byte stream or null
if none was supplied.
|
Reader |
getReader()
Returns the input of this transcoder as a character stream or null
if none was supplied.
|
String |
getURI()
Returns the input of this transcoder as a URI or null if none
was supplied.
|
XMLReader |
getXMLReader()
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 |
setReader(Reader reader)
Sets the input of this transcoder input with the specified
character stream.
|
void |
setURI(String uri)
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.
|
protected XMLReader xmlReader
protected InputStream istream
protected Reader reader
protected Document document
protected String uri
public TranscoderInput()
TranscoderInput.public TranscoderInput(XMLReader xmlReader)
TranscoderInput with the specified
XML reader.xmlReader - the XML reader of this transcoder inputpublic TranscoderInput(InputStream istream)
TranscoderInput with the specified
byte stream input.istream - the byte stream of this transcoder inputpublic TranscoderInput(Reader reader)
TranscoderInput with the specified
character stream.reader - the character stream of this transcoder inputpublic TranscoderInput(Document document)
TranscoderInput with the specified Document.document - the Document of this transcoder inputpublic TranscoderInput(String uri)
TranscoderInput with the specified uri.uri - the URI of this transcoder inputpublic void setXMLReader(XMLReader xmlReader)
xmlReader - the XML reader of this transcoder inputpublic XMLReader getXMLReader()
public void setInputStream(InputStream istream)
istream - the byte stream of this transcoder inputpublic InputStream getInputStream()
public void setReader(Reader reader)
reader - the character stream of this transcoder inputpublic Reader getReader()
public void setDocument(Document document)
document - the document of this transcoder inputpublic Document getDocument()
public void setURI(String uri)
uri - the URI of this transcoder inputpublic String getURI()
Copyright © 2000–2021 Apache Software Foundation. All rights reserved.