com.ibm.ram.client
Class RAMAttachment

java.lang.Object
  extended by com.ibm.ram.common.data.Attachment
      extended by com.ibm.ram.client.RAMAttachment

public class RAMAttachment
extends Attachment

Represents an attachment to a topic or post.

Since:
7.1
Author:
kbauer

Method Summary
 java.io.InputStream downloadContents()
          Get an input stream to download the attachment
 java.lang.String getDescription()
           
 long getId()
           
 java.lang.String getName()
           
 RAMPost getPost()
          Return the post this attachment is attached to.
 long getPostID()
           
 RAMTopic getTopic()
          Return the topic this attachment is attached to.
 int getTopicID()
           
 
Methods inherited from class com.ibm.ram.common.data.Attachment
setDescription, setId, setName, setPostID, setTopicID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDescription

public java.lang.String getDescription()
Overrides:
getDescription in class Attachment
Returns:
Returns the description.

getId

public long getId()
Overrides:
getId in class Attachment
Returns:
Returns the id.

getName

public java.lang.String getName()
Overrides:
getName in class Attachment
Returns:
Returns the name.

getPostID

public long getPostID()
Overrides:
getPostID in class Attachment
Returns:
Returns the postID.

getTopicID

public int getTopicID()
Overrides:
getTopicID in class Attachment
Returns:
Returns the topicID.

getPost

public RAMPost getPost()
Return the post this attachment is attached to.

Since:
7.1

getTopic

public RAMTopic getTopic()
Return the topic this attachment is attached to.

Since:
7.1

downloadContents

public java.io.InputStream downloadContents()
Get an input stream to download the attachment

Returns:
Since:
7.1.1