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 DataSource
IOException
public OutputStream getOutputStream()
getOutputStream
in interface DataSource
public String getContentType()
getContentType
in interface DataSource
public String getName()
getName
in interface DataSource
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.