public class InputStreamDataSource extends Object implements DataSource
DataSource wapper for an InputStream.| Constructor and Description |
|---|
InputStreamDataSource(InputStream data,
org.mule.runtime.api.metadata.MediaType contentType,
String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
public InputStreamDataSource(InputStream data, org.mule.runtime.api.metadata.MediaType contentType, String name)
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 © 2003–2017 MuleSoft, Inc.. All rights reserved.