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.
- Author:
- Kohsuke Kawaguchi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceSource
public DataSourceSource(DataHandler dh)
throws MimeTypeParseException
- Throws:
MimeTypeParseException
DataSourceSource
public DataSourceSource(DataSource source)
throws MimeTypeParseException
- Throws:
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 DataSource getDataSource()
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.