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