Package com.gentlyweb.utils
Class HTMLDataSource
- java.lang.Object
-
- com.gentlyweb.utils.HTMLDataSource
-
- All Implemented Interfaces:
javax.activation.DataSource
public class HTMLDataSource extends Object implements javax.activation.DataSource
-
-
Constructor Summary
Constructors Constructor Description HTMLDataSource(String html)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
InputStream
getInputStream()
String
getName()
OutputStream
getOutputStream()
-
-
-
Constructor Detail
-
HTMLDataSource
public HTMLDataSource(String html)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfacejavax.activation.DataSource
- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStream
in interfacejavax.activation.DataSource
- Throws:
IOException
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfacejavax.activation.DataSource
-
getName
public String getName()
- Specified by:
getName
in interfacejavax.activation.DataSource
-
-