public final class DataSourceSource extends StreamSource
Source
implementation backed by DataHandler
.
This implementation allows the same Source
to be used
mutliple times.
Source
isn't really pluggable. As a consequence,
this implementation is clunky --- weak against unexpected
usage of the class.
FEATURE
Constructor and Description |
---|
DataSourceSource(DataHandler dh) |
DataSourceSource(DataSource source) |
Modifier and Type | Method and Description |
---|---|
DataSource |
getDataSource() |
InputStream |
getInputStream() |
Reader |
getReader() |
void |
setInputStream(InputStream inputStream) |
void |
setReader(Reader reader) |
getPublicId, getSystemId, setPublicId, setSystemId, setSystemId
public DataSourceSource(DataHandler dh) throws MimeTypeParseException
MimeTypeParseException
public DataSourceSource(DataSource source) throws MimeTypeParseException
MimeTypeParseException
public void setReader(Reader reader)
setReader
in class StreamSource
public void setInputStream(InputStream inputStream)
setInputStream
in class StreamSource
public Reader getReader()
getReader
in class StreamSource
public InputStream getInputStream()
getInputStream
in class StreamSource
public DataSource getDataSource()
Copyright © 2017 JBoss by Red Hat. All rights reserved.