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