public class StreamDataSource extends Object implements javax.activation.DataSource
| Constructor and Description |
|---|
StreamDataSource(String contentType,
InputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public StreamDataSource(String contentType, InputStream stream)
public String getContentType()
getContentType in interface javax.activation.DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface javax.activation.DataSourceIOExceptionpublic String getName()
getName in interface javax.activation.DataSourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface javax.activation.DataSourceIOExceptionApache CXF