public class ByteArrayDataSource extends Object implements DataSource
| Constructor and Description |
|---|
ByteArrayDataSource(byte[] 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 ByteArrayDataSource(byte[] data,
org.mule.runtime.api.metadata.MediaType contentType,
String name)
public InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionpublic String getContentType()
getContentType in interface DataSourcepublic String getName()
getName in interface DataSourceCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.