Package com.atlassian.confluence.core
Class InputStreamDataSource
- java.lang.Object
-
- com.atlassian.confluence.core.InputStreamDataSource
-
- All Implemented Interfaces:
javax.activation.DataSource
public class InputStreamDataSource extends Object implements javax.activation.DataSource
A datasource that provides access to an input stream of data.
-
-
Constructor Summary
Constructors Constructor Description InputStreamDataSource(String name, String contentType, InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
InputStream
getInputStream()
String
getName()
OutputStream
getOutputStream()
-
-
-
Constructor Detail
-
InputStreamDataSource
public InputStreamDataSource(String name, String contentType, InputStream inputStream)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfacejavax.activation.DataSource
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfacejavax.activation.DataSource
-
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
-
-