public class StringDataSource extends Object implements DataSource
| Modifier and Type | Field and Description |
|---|---|
protected String |
content |
protected String |
contentType |
protected String |
name |
| Constructor and Description |
|---|
StringDataSource(String payload) |
StringDataSource(String payload,
String name) |
StringDataSource(String content,
String name,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
protected String content
protected String 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–2015 MuleSoft, Inc.. All rights reserved.