Package org.dspace.core
Class Email.InputStreamDataSource
- java.lang.Object
-
- org.dspace.core.Email.InputStreamDataSource
-
- All Implemented Interfaces:
javax.activation.DataSource
- Enclosing class:
public static class Email.InputStreamDataSource extends Object implements javax.activation.DataSource
Wrap anInputStreamin aDataSource.- Author:
- arnaldo
-
-
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 interfacejavax.activation.DataSource
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfacejavax.activation.DataSource- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein interfacejavax.activation.DataSource
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfacejavax.activation.DataSource- Throws:
IOException
-
-