Package com.pff
Class PSTAttachment
- java.lang.Object
-
- com.pff.PSTObject
-
- com.pff.PSTAttachment
-
public class PSTAttachment extends PSTObject
Class containing attachment information
-
-
Field Summary
Fields Modifier and Type Field Description static intATTACHMENT_METHOD_BY_REFERENCEstatic intATTACHMENT_METHOD_BY_REFERENCE_ONLYstatic intATTACHMENT_METHOD_BY_REFERENCE_RESOLVEstatic intATTACHMENT_METHOD_BY_VALUEstatic intATTACHMENT_METHOD_EMBEDDEDstatic intATTACHMENT_METHOD_NONEstatic intATTACHMENT_METHOD_OLE-
Fields inherited from class com.pff.PSTObject
children, compEnc, data, descriptorIndexNode, items, localDescriptorItems, NID_TYPE_ASSOC_CONTENTS_TABLE, NID_TYPE_ASSOC_MESSAGE, NID_TYPE_ATTACHMENT, NID_TYPE_ATTACHMENT_TABLE, NID_TYPE_CONTENTS_TABLE, NID_TYPE_CONTENTS_TABLE_INDEX, NID_TYPE_HID, NID_TYPE_HIERARCHY_TABLE, NID_TYPE_INTERNAL, NID_TYPE_LTP, NID_TYPE_NORMAL_FOLDER, NID_TYPE_NORMAL_MESSAGE, NID_TYPE_OUTGOING_QUEUE_TABLE, NID_TYPE_RECEIVE_FOLDER_TABLE, NID_TYPE_RECIPIENT_TABLE, NID_TYPE_SEARCH_CONTENTS_TABLE, NID_TYPE_SEARCH_CRITERIA_OBJECT, NID_TYPE_SEARCH_FOLDER, NID_TYPE_SEARCH_TABLE_INDEX, NID_TYPE_SEARCH_UPDATE_QUEUE, pstFile, table
-
-
Constructor Summary
Constructors Constructor Description PSTAttachment(PSTFile theFile, PSTTableBC table, java.util.HashMap<java.lang.Integer,PSTDescriptorItem> localDescriptorItems)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttachmentContentDisposition()Attachment content dispositionintgetAttachMethod()Attachment method Integer 32-bit signed 0 => None (No attachment) 1 => By value 2 => By reference 3 => By reference resolve 4 => By reference only 5 => Embedded message 6 => OLEintgetAttachNum()Attachment numberintgetAttachSize()Attachment sizejava.lang.StringgetContentId()Attachment Content IDjava.util.DategetCreationTime()Creation timePSTMessagegetEmbeddedPSTMessage()java.io.InputStreamgetFileInputStream()java.lang.StringgetFilename()Attachment (short) filename ASCII or Unicode stringintgetFilesize()java.lang.StringgetLongFilename()Attachment long filename ASCII or Unicode stringjava.lang.StringgetLongPathname()Attachment long pathname ASCII or Unicode stringintgetMimeSequence()Attachment mime sequencejava.lang.StringgetMimeTag()Attachment mime type ASCII or Unicode stringjava.util.DategetModificationTime()java.lang.StringgetPathname()Attachment (short) pathname ASCII or Unicode stringintgetRenderingPosition()Attachment Position Integer 32-bit signedintgetSize()booleanisAttachmentInvisibleInHtml()Attachment not available in HTMLbooleanisAttachmentInvisibleInRTF()Attachment not available in RTFbooleanisAttachmentMhtmlRef()Attachment is MHTML REF-
Methods inherited from class com.pff.PSTObject
apptTimeToCalendar, apptTimeToUTC, convertBigEndianBytesToLong, convertLittleEndianBytesToLong, convertLittleEndianBytesToLong, createAppropriatePSTMessageObject, createJavaString, decode, detectAndLoadPSTObject, detectAndLoadPSTObject, encode, filetimeToDate, getAddrType, getBinaryItem, getBooleanItem, getBooleanItem, getComment, getDateItem, getDescriptorNode, getDescriptorNodeId, getDisplayName, getDoubleItem, getDoubleItem, getEmailAddress, getIntItem, getIntItem, getItemsString, getLastModificationTime, getLongItem, getLongItem, getMessageClass, getNodeType, getNodeType, getStringItem, getStringItem, getStringItem, getTimeZoneItem, guessPSTObjectType, printFormattedNumber, printFormattedNumber, printHexFormatted, printHexFormatted, toString
-
-
-
-
Field Detail
-
ATTACHMENT_METHOD_NONE
public static final int ATTACHMENT_METHOD_NONE
- See Also:
- Constant Field Values
-
ATTACHMENT_METHOD_BY_VALUE
public static final int ATTACHMENT_METHOD_BY_VALUE
- See Also:
- Constant Field Values
-
ATTACHMENT_METHOD_BY_REFERENCE
public static final int ATTACHMENT_METHOD_BY_REFERENCE
- See Also:
- Constant Field Values
-
ATTACHMENT_METHOD_BY_REFERENCE_RESOLVE
public static final int ATTACHMENT_METHOD_BY_REFERENCE_RESOLVE
- See Also:
- Constant Field Values
-
ATTACHMENT_METHOD_BY_REFERENCE_ONLY
public static final int ATTACHMENT_METHOD_BY_REFERENCE_ONLY
- See Also:
- Constant Field Values
-
ATTACHMENT_METHOD_EMBEDDED
public static final int ATTACHMENT_METHOD_EMBEDDED
- See Also:
- Constant Field Values
-
ATTACHMENT_METHOD_OLE
public static final int ATTACHMENT_METHOD_OLE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PSTAttachment
PSTAttachment(PSTFile theFile, PSTTableBC table, java.util.HashMap<java.lang.Integer,PSTDescriptorItem> localDescriptorItems)
-
-
Method Detail
-
getSize
public int getSize()
-
getCreationTime
public java.util.Date getCreationTime()
Description copied from class:PSTObjectCreation time- Overrides:
getCreationTimein classPSTObject
-
getModificationTime
public java.util.Date getModificationTime()
-
getEmbeddedPSTMessage
public PSTMessage getEmbeddedPSTMessage() throws java.io.IOException, PSTException
- Throws:
java.io.IOExceptionPSTException
-
getFileInputStream
public java.io.InputStream getFileInputStream() throws java.io.IOException, PSTException- Throws:
java.io.IOExceptionPSTException
-
getFilesize
public int getFilesize() throws PSTException, java.io.IOException- Throws:
PSTExceptionjava.io.IOException
-
getFilename
public java.lang.String getFilename()
Attachment (short) filename ASCII or Unicode string
-
getAttachMethod
public int getAttachMethod()
Attachment method Integer 32-bit signed 0 => None (No attachment) 1 => By value 2 => By reference 3 => By reference resolve 4 => By reference only 5 => Embedded message 6 => OLE
-
getAttachSize
public int getAttachSize()
Attachment size
-
getAttachNum
public int getAttachNum()
Attachment number
-
getLongFilename
public java.lang.String getLongFilename()
Attachment long filename ASCII or Unicode string
-
getPathname
public java.lang.String getPathname()
Attachment (short) pathname ASCII or Unicode string
-
getRenderingPosition
public int getRenderingPosition()
Attachment Position Integer 32-bit signed
-
getLongPathname
public java.lang.String getLongPathname()
Attachment long pathname ASCII or Unicode string
-
getMimeTag
public java.lang.String getMimeTag()
Attachment mime type ASCII or Unicode string
-
getMimeSequence
public int getMimeSequence()
Attachment mime sequence
-
getContentId
public java.lang.String getContentId()
Attachment Content ID
-
isAttachmentInvisibleInHtml
public boolean isAttachmentInvisibleInHtml()
Attachment not available in HTML
-
isAttachmentInvisibleInRTF
public boolean isAttachmentInvisibleInRTF()
Attachment not available in RTF
-
isAttachmentMhtmlRef
public boolean isAttachmentMhtmlRef()
Attachment is MHTML REF
-
getAttachmentContentDisposition
public java.lang.String getAttachmentContentDisposition()
Attachment content disposition
-
-