|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.gateway.AttachmentDataSource
public class AttachmentDataSource
Provides a datasource wrapper for an Attachment object.
| Constructor Summary | |
|---|---|
AttachmentDataSource(Attachment attachment)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
Return the content type associated with the request |
java.io.InputStream |
getInputStream()
Returns an input stream of the request data |
java.lang.String |
getName()
Returns the name of the attachment |
java.io.OutputStream |
getOutputStream()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttachmentDataSource(Attachment attachment)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface javax.activation.DataSourcejava.io.IOException
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface javax.activation.DataSourcejava.io.IOException - if an error occurs reading from the underlying InputStreampublic java.lang.String getName()
getName in interface javax.activation.DataSourcepublic java.lang.String getContentType()
getContentType in interface javax.activation.DataSource
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||