|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.elegantj.net.message.POP3Message
POP3Message provides message for the .eml file It provides all the functionality to parse the .eml file Also retrieves all the parameter of the .eml file gives the option to save the attachments separately
| Constructor Summary | |
POP3Message()
Constructs the POP3Message |
|
| Method Summary | |
int |
getAttachmentCount()
Returns the no of the attachment count |
java.lang.String |
getAttachmentFileName(int index)
Returns the name of the attchment at the specified index |
java.util.Vector |
getAttachmentFileNames()
Returns the attachments names vector |
POP3MessagePart |
getAttachmentPart(int index)
Method which Returns the attachment EML part for the specified attachment index |
java.util.Vector |
getAttachmentParts()
Method which returns the Vector containing the POP3MessagePart for the each attachments |
int |
getAttachmentSize(int index)
Returns the size of the attachment in bytes |
java.lang.String |
getBody()
Method which Returns the value of the body |
java.lang.String |
getBodyFormat()
Method which returns the body format |
POP3MessagePart |
getBodyPart()
Method which returns the body EML part for the body |
java.lang.String |
getBoundary()
Method which Returns the value of Boundary |
java.lang.String |
getCC()
Method which Returns the value of CC |
int |
getCCCount()
Returns the count of the CC addresses |
java.lang.String |
getCCName(int index)
Returns the CC name at the specified index |
java.util.Vector |
getCCNames()
Returns the vector containing the CC names |
java.lang.String |
getContentTransferEncoding()
Method which Returns the value of ContentTransferEncoding |
java.lang.String |
getContentType()
Method which Returns the value of ContentType |
java.lang.String |
getDate()
Method which Returns the value of Date |
java.lang.String |
getFrom()
Method which Returns the value of From |
java.lang.String |
getMessageID()
Method which Returns the value of MessageID |
java.lang.String |
getMimeVersion()
Method which Returns the value of MimeVersion |
java.lang.String |
getOrganization()
Method which Returns the value of organization |
java.lang.String |
getStatus()
Method which Returns the value of Status |
java.lang.String |
getSubject()
Method which Returns the value of Subject |
java.lang.String |
getTO()
Method which Returns the value of TO |
int |
getTOCount()
Returns the count of the TO addresses |
java.lang.String |
getTOName(int index)
Returns the TO name at the specified index |
java.util.Vector |
getTONames()
Returns the vector containing the TO names |
java.lang.String |
getXMailer()
Method which Returns the value of XMailer |
java.lang.String |
getXRcptTo()
Method which Returns the value of XRcptTo |
java.lang.String |
getXUIDL()
Method which Returns the value of XUIDL |
boolean |
isContainsAttachments()
Returns the is this EML contains the attachments or not |
void |
parse(java.io.InputStream inputStream)
Method which parses the specified specified inputStream |
void |
parse(java.lang.String filePath)
Method which parses the specified .eml file |
void |
saveAttachment(int index,
java.lang.String directoryPath)
Method which saves the attachment at the specified index to the specified directory |
void |
saveAttachmentAs(int index,
java.lang.String filePath)
Method which saves the attachment at the specified index to the specified filePath |
void |
saveAttachments(java.lang.String directoryPath)
Method which saves the all the attachments to the specified directory |
void |
saveMessage(java.lang.String filePath)
Method which saves the message to the specified file |
void |
writeAttachment(int index,
java.io.OutputStream os)
Method which writes the attachment at the specified index to the specified outputStream |
void |
writeMessage(java.io.OutputStream outputStream)
Method which writes the message to the specified outputStream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public POP3Message()
| Method Detail |
public void parse(java.lang.String filePath)
throws java.lang.Exception
filePath - the specified .eml file
You must call this parse method, before retrieving the .eml file's parameters
java.lang.Exception
public void parse(java.io.InputStream inputStream)
throws java.lang.Exception
inputStream - The specified inputStream
You must call this parse method, before retrieving the .eml file's parameters
java.lang.Exceptionpublic java.lang.String getOrganization()
public java.lang.String getTO()
public java.util.Vector getTONames()
public int getTOCount()
public java.lang.String getTOName(int index)
index - The specified index
public java.lang.String getFrom()
public java.lang.String getSubject()
public java.lang.String getCC()
public int getCCCount()
public java.util.Vector getCCNames()
public java.lang.String getCCName(int index)
index - The specified index
public java.lang.String getContentTransferEncoding()
public java.lang.String getXMailer()
public java.lang.String getContentType()
public java.lang.String getMimeVersion()
public java.lang.String getMessageID()
public java.lang.String getDate()
public java.lang.String getXRcptTo()
public java.lang.String getStatus()
public java.lang.String getXUIDL()
public java.lang.String getBoundary()
public java.lang.String getBody()
public java.lang.String getBodyFormat()
public POP3MessagePart getBodyPart()
public java.util.Vector getAttachmentParts()
public POP3MessagePart getAttachmentPart(int index)
index - The specified attachment index
public boolean isContainsAttachments()
public java.util.Vector getAttachmentFileNames()
public int getAttachmentCount()
public java.lang.String getAttachmentFileName(int index)
public int getAttachmentSize(int index)
public void saveAttachments(java.lang.String directoryPath)
directoryPath - The specified directory to save all the attachment
public void saveAttachment(int index,
java.lang.String directoryPath)
index - The specified attachment indexdirectoryPath - The specified directory path
public void saveAttachmentAs(int index,
java.lang.String filePath)
index - The specified attachment indexfilePath - The file path including the directory and file name
public void writeAttachment(int index,
java.io.OutputStream os)
throws java.lang.Exception
index - The specified index attachment indexos - The specified output stream
java.lang.Exception
public void saveMessage(java.lang.String filePath)
throws java.lang.Exception
filePath - The specified filePath
java.lang.Exception
public void writeMessage(java.io.OutputStream outputStream)
throws java.lang.Exception
java.lang.Exception
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||