public class StringDataSource extends Object implements DataSource
| Modifier and Type | Field and Description |
|---|---|
protected String |
content |
protected org.mule.runtime.api.metadata.MediaType |
contentType |
protected String |
name |
| Constructor and Description |
|---|
StringDataSource(String payload) |
StringDataSource(String payload,
String name) |
StringDataSource(String content,
String name,
org.mule.runtime.api.metadata.MediaType contentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
protected String content
protected org.mule.runtime.api.metadata.MediaType contentType
protected String name
public StringDataSource(String payload)
public InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic OutputStream getOutputStream()
getOutputStream in interface DataSourcepublic String getContentType()
getContentType in interface DataSourcepublic String getName()
getName in interface DataSourceCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.