|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.email.EmailContentPart rice.email.EmailSinglePart
public class EmailSinglePart
Represents the content of an email which is a single entry
Field Summary | |
---|---|
protected java.lang.ref.SoftReference |
content
The actual content of this email part |
EmailDataReference |
contentReference
A reference to the content of this email part |
protected int |
lines
The number of lines for this email single part |
protected EmailData |
unstoredContent
A reference to the content which is non-soft |
Fields inherited from class rice.email.EmailContentPart |
---|
size, storage |
Constructor Summary | |
---|---|
EmailSinglePart(EmailData content)
Constructor which takes in an EmailData |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Returns whether or not this emailSinglePart is equal to the given object |
void |
getContent(Continuation command)
Method which retrieves and returns this content's EmailData |
void |
getContentHashReferences(java.util.Set set)
This method returns a list of all the handles stored in this part by adding them to the specified set. |
int |
getLines()
Returns the number of lines for this email single part |
int |
hashCode()
Returns the hashCode |
void |
setStorage(StorageService storage)
Method which sets this part's storage service |
void |
storeData(Continuation command)
Method which writes this part's content out to disk and retrieves a reference to it. |
Methods inherited from class rice.email.EmailContentPart |
---|
getSize, setSize |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int lines
protected transient java.lang.ref.SoftReference content
public EmailDataReference contentReference
protected transient EmailData unstoredContent
Constructor Detail |
---|
public EmailSinglePart(EmailData content)
Method Detail |
---|
public void getContentHashReferences(java.util.Set set)
getContentHashReferences
in class EmailContentPart
set
- The set to add the PastContentHandles to.public void storeData(Continuation command)
storeData
in class EmailContentPart
command
- The command to run once the data has been stored, and
is returned the success or failure of this commandpublic void getContent(Continuation command)
getContent
in class EmailContentPart
command
- The command to run once the data is availablepublic int getLines()
public boolean equals(java.lang.Object o)
equals
in class EmailContentPart
o
- The object to compare to
public int hashCode()
hashCode
in class EmailContentPart
public void setStorage(StorageService storage)
setStorage
in class EmailContentPart
storage
- The local storage service
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |