org.mule.message.ds
Class StringDataSource
java.lang.Object
org.mule.message.ds.StringDataSource
- All Implemented Interfaces:
- DataSource
public class StringDataSource
- extends Object
- implements DataSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
content
protected String content
contentType
protected String contentType
name
protected String name
StringDataSource
public StringDataSource(String payload)
StringDataSource
public StringDataSource(String payload,
String name)
StringDataSource
public StringDataSource(String content,
String name,
String contentType)
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in interface DataSource
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStream
in interface DataSource
getContentType
public String getContentType()
- Specified by:
getContentType
in interface DataSource
getName
public String getName()
- Specified by:
getName
in interface DataSource
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.