Class TextDataSource
- java.lang.Object
-
- org.apache.axiom.testutils.activation.TextDataSource
-
- All Implemented Interfaces:
DataSource
public class TextDataSource extends Object implements DataSource
-
-
Constructor Summary
Constructors Constructor Description TextDataSource(String content, String charset, String subtype)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()InputStreamgetInputStream()StringgetName()OutputStreamgetOutputStream()
-
-
-
Method Detail
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceDataSource
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceDataSource- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein interfaceDataSource
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfaceDataSource- Throws:
IOException
-
-