public class InputStreamDataSource extends Object implements DataSource
| Constructor and Description |
|---|
InputStreamDataSource(String name,
InputStream stream)
construct an InputStreamDataSource object
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
get the content type of this stream
|
InputStream |
getInputStream()
get the InputStream from this data source
|
String |
getName()
get the name of the data source.
|
OutputStream |
getOutputStream()
get an output stream for this data source.
|
public InputStreamDataSource(String name, InputStream stream)
name - stream - public String getContentType()
getContentType in interface DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic String getName()
getName in interface DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionCopyright © 2014. All Rights Reserved.