|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.information.metadata.Attachment
@SASScope(value="ALL") @BinaryCompatibilityOnly 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 AttachmentInterfacename - 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 AttachmentInterfacedescription - 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 AttachmentInterfacemimeType - 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
AttachmentInterfaceInputStreamAdapter
setContent in interface AttachmentInterfacecontent - 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 AttachmentInterfacejava.rmi.RemoteException - in the event of remote object failure.
public java.lang.String getDescription()
throws java.rmi.RemoteException
AttachmentInterface
getDescription in interface AttachmentInterfacejava.rmi.RemoteException - in the event of remote object failure.
public java.lang.String getMimeType()
throws java.rmi.RemoteException
AttachmentInterface
getMimeType in interface AttachmentInterfacejava.rmi.RemoteException - in the event of remote object failure.
public java.io.InputStream getContent()
throws java.rmi.RemoteException
AttachmentInterface
getContent in interface AttachmentInterfacejava.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 | |||||||||||||