com.sun.xml.bind.v2.util
Class DataSourceSource
java.lang.Object
javax.xml.transform.stream.StreamSource
com.sun.xml.bind.v2.util.DataSourceSource
- All Implemented Interfaces:
- Source
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceSource
public DataSourceSource(javax.activation.DataHandler dh)
throws javax.activation.MimeTypeParseException
- Throws:
javax.activation.MimeTypeParseException
DataSourceSource
public DataSourceSource(javax.activation.DataSource source)
throws javax.activation.MimeTypeParseException
- Throws:
javax.activation.MimeTypeParseException
setReader
public void setReader(Reader reader)
- Overrides:
setReader
in class StreamSource
setInputStream
public void setInputStream(InputStream inputStream)
- Overrides:
setInputStream
in class StreamSource
getReader
public Reader getReader()
- Overrides:
getReader
in class StreamSource
getInputStream
public InputStream getInputStream()
- Overrides:
getInputStream
in class StreamSource
getDataSource
public javax.activation.DataSource getDataSource()