|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.services.information.metadata.Attachment
Represents an attachment for a comment.
| Constructor Summary | |
Attachment(String name,
String description,
String mimeType,
InputStream content)
Creates a new attachment, with the name, description, mimetype and content provided in this constructor. |
|
| Method Summary | |
InputStream |
getContent()
Gets the source(stream) of the content for this attachment |
String |
getDescription()
Gets the description of this attachment |
String |
getMimeType()
Gets the MIME type of this attachment |
String |
getName()
Gets the name of this attachment |
void |
setContent(InputStream content)
Sets the source(stream) for the content of this attachment. |
void |
setDescription(String description)
Sets the description of this attachment |
void |
setMimeType(String mimeType)
Sets the mime type of this attachment |
void |
setName(String name)
Sets the name of this attachment |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Attachment(String name,
String description,
String mimeType,
InputStream content)
throws 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| Method Detail |
public void setName(String name)
throws RemoteException
AttachmentInterfacesetName in interface AttachmentInterfacecom.sas.services.information.metadata.AttachmentInterfacename - The name of this attachment
public void setDescription(String description)
throws RemoteException
AttachmentInterfacesetDescription in interface AttachmentInterfacecom.sas.services.information.metadata.AttachmentInterfacedescription - The name of this attachment
public void setMimeType(String mimeType)
throws RemoteException
AttachmentInterfacesetMimeType in interface AttachmentInterfacecom.sas.services.information.metadata.AttachmentInterfacemimeType - The MIME type for this attachment
public void setContent(InputStream content)
throws RemoteException
AttachmentInterfaceInputStreamAdaptersetContent in interface AttachmentInterfacecom.sas.services.information.metadata.AttachmentInterfacecontent - The input stream containing the content for this attachment
public String getName()
throws RemoteException
AttachmentInterfacegetName in interface AttachmentInterfacecom.sas.services.information.metadata.AttachmentInterface
public String getDescription()
throws RemoteException
AttachmentInterfacegetDescription in interface AttachmentInterfacecom.sas.services.information.metadata.AttachmentInterface
public String getMimeType()
throws RemoteException
AttachmentInterfacegetMimeType in interface AttachmentInterfacecom.sas.services.information.metadata.AttachmentInterface
public InputStream getContent()
throws RemoteException
AttachmentInterfacegetContent in interface AttachmentInterfacecom.sas.services.information.metadata.AttachmentInterface
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||