|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.metadata.Attachment
public class Attachment
Represents an attachment for a comment.
Constructor Summary | |
---|---|
Attachment(java.lang.String name,
java.lang.String description,
java.lang.String mimeType,
java.io.InputStream content)
Creates a new attachment, with the name, description, mimetype and content provided in this constructor. |
Method Summary | |
---|---|
java.io.InputStream |
getContent()
Gets the source(stream) of the content for this attachment |
java.lang.String |
getDescription()
Gets the description of this attachment |
java.lang.String |
getMimeType()
Gets the MIME type of this attachment |
java.lang.String |
getName()
Gets the name of this attachment |
void |
setContent(java.io.InputStream content)
Sets the source(stream) for the content of this attachment. |
void |
setDescription(java.lang.String description)
Sets the description of this attachment |
void |
setMimeType(java.lang.String mimeType)
Sets the mime type of this attachment |
void |
setName(java.lang.String name)
Sets the name of this attachment |
Constructor Detail |
---|
public Attachment(java.lang.String name, java.lang.String description, java.lang.String mimeType, java.io.InputStream content) throws java.rmi.RemoteException
name
- A name for the attachmentdescription
- A description for the attachmentmimeType
- A MIME type for the attachmentcontent
- The actual attachment content, provided as an input stream
java.rmi.RemoteException
- in the event of remote object failure.Method Detail |
---|
public void setName(java.lang.String name) throws java.rmi.RemoteException
AttachmentInterface
setName
in interface AttachmentInterface
name
- The name of this attachment
java.rmi.RemoteException
- in the event of remote object failure.public void setDescription(java.lang.String description) throws java.rmi.RemoteException
AttachmentInterface
setDescription
in interface AttachmentInterface
description
- The name of this attachment
java.rmi.RemoteException
- in the event of remote object failure.public void setMimeType(java.lang.String mimeType) throws java.rmi.RemoteException
AttachmentInterface
setMimeType
in interface AttachmentInterface
mimeType
- The MIME type for this attachment
java.rmi.RemoteException
- in the event of remote object failure.public void setContent(java.io.InputStream content) throws java.rmi.RemoteException
AttachmentInterface
InputStreamAdapter
setContent
in interface AttachmentInterface
content
- The input stream containing the content for this attachment
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getName() throws java.rmi.RemoteException
AttachmentInterface
getName
in interface AttachmentInterface
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getDescription() throws java.rmi.RemoteException
AttachmentInterface
getDescription
in interface AttachmentInterface
java.rmi.RemoteException
- in the event of remote object failure.public java.lang.String getMimeType() throws java.rmi.RemoteException
AttachmentInterface
getMimeType
in interface AttachmentInterface
java.rmi.RemoteException
- in the event of remote object failure.public java.io.InputStream getContent() throws java.rmi.RemoteException
AttachmentInterface
getContent
in interface AttachmentInterface
java.rmi.RemoteException
- in the event of remote object failure.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |