|
Enhydra-Oyster 2.1-7 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.oyster.activation.StreamDataSource
StreamDataSource represents implementation of DataSource interfaces, and as result of that, objects of this class could be used within MimeBodyPart objects to help them to read data from objects which they conveys. This class is designed to help in getting data from objects of type InputStream and all its subclasses.
Constructor Summary | |
StreamDataSource(java.io.InputStream in0,
java.lang.String fileName0)
Constructs StreamDataSource with given input stream and coresponding string which contains virtual or real file name. |
Method Summary | |
java.lang.String |
getContentType()
Implements getContentType method from DataSource interface |
java.io.InputStream |
getInputStream()
Implements getInputStream method from DataSource interface |
java.lang.String |
getName()
Implements getName method from DataSource interface |
java.io.OutputStream |
getOutputStream()
Implements getOutputStream method from DataSource interface. |
void |
setContentType(java.lang.String contType0)
Sets content type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StreamDataSource(java.io.InputStream in0, java.lang.String fileName0) throws SMIMEException
Method Detail |
public void setContentType(java.lang.String contType0)
contType0
- Content-Type for MIME message header fieldpublic java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
java.io.IOException
public java.lang.String getName()
getName
in interface javax.activation.DataSource
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException
- is always thrown when this method is used.
|
Enhydra-Oyster 2.1-7 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |