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 DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public String getName()
getName
in interface DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
Copyright © 2014. All Rights Reserved.