*** This class provides Binary Compatibility only, not Source Compatibility ***
Class Attachment
java.lang.Object
com.sas.services.information.metadata.Attachment
- All Implemented Interfaces:
AttachmentInterface,Serializable,Remote
@SASScope("ALL")
@BinaryCompatibilityOnly
public class Attachment
extends Object
implements AttachmentInterface, Serializable
Represents an attachment for a comment.
- Since:
- 1.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAttachment(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
Modifier and TypeMethodDescriptionInputStreamGets the source(stream) of the content for this attachmentStringGets the description of this attachmentStringGets the MIME type of this attachmentStringgetName()Gets the name of this attachmentvoidsetContent(InputStream content) Sets the source(stream) for the content of this attachment.voidsetDescription(String description) Sets the description of this attachmentvoidsetMimeType(String mimeType) Sets the mime type of this attachmentvoidsetName(String name) Sets the name of this attachmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Attachment
public Attachment(String name, String description, String mimeType, InputStream content) throws RemoteException Creates a new attachment, with the name, description, mimetype and content provided in this constructor. An internal name will be given to the attachment - the external name will be saved as a property.- Parameters:
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- Throws:
RemoteException- in the event of remote object failure.
-
-
Method Details
-
setName
public void setName(String name) throws RemoteException Description copied from interface:AttachmentInterfaceSets the name of this attachment- Specified by:
setNamein interfaceAttachmentInterface- Parameters:
name- The name of this attachment- Throws:
RemoteException- in the event of remote object failure.
-
setDescription
public void setDescription(String description) throws RemoteException Description copied from interface:AttachmentInterfaceSets the description of this attachment- Specified by:
setDescriptionin interfaceAttachmentInterface- Parameters:
description- The name of this attachment- Throws:
RemoteException- in the event of remote object failure.
-
setMimeType
public void setMimeType(String mimeType) throws RemoteException Description copied from interface:AttachmentInterfaceSets the mime type of this attachment- Specified by:
setMimeTypein interfaceAttachmentInterface- Parameters:
mimeType- The MIME type for this attachment- Throws:
RemoteException- in the event of remote object failure.
-
setContent
public void setContent(InputStream content) throws RemoteException Description copied from interface:AttachmentInterfaceSets the source(stream) for the content of this attachment. For remote deployment the InputStream should be wrapped in anInputStreamAdapter- Specified by:
setContentin interfaceAttachmentInterface- Parameters:
content- The input stream containing the content for this attachment- Throws:
RemoteException- in the event of remote object failure.
-
getName
public String getName() throws RemoteExceptionDescription copied from interface:AttachmentInterfaceGets the name of this attachment- Specified by:
getNamein interfaceAttachmentInterface- Returns:
- String The name of this attachment
- Throws:
RemoteException- in the event of remote object failure.
-
getDescription
public String getDescription() throws RemoteExceptionDescription copied from interface:AttachmentInterfaceGets the description of this attachment- Specified by:
getDescriptionin interfaceAttachmentInterface- Returns:
- String The description of this attachment
- Throws:
RemoteException- in the event of remote object failure.
-
getMimeType
public String getMimeType() throws RemoteExceptionDescription copied from interface:AttachmentInterfaceGets the MIME type of this attachment- Specified by:
getMimeTypein interfaceAttachmentInterface- Returns:
- String The MIME type of this attachment
- Throws:
RemoteException- in the event of remote object failure.
-
getContent
public InputStream getContent() throws RemoteExceptionDescription copied from interface:AttachmentInterfaceGets the source(stream) of the content for this attachment- Specified by:
getContentin interfaceAttachmentInterface- Returns:
- InputStream The stream containing the content for this attachment
- Throws:
RemoteException- in the event of remote object failure.
-