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 int
ATTACHMENT_METHOD_BY_REFERENCE
static int
ATTACHMENT_METHOD_BY_REFERENCE_ONLY
static int
ATTACHMENT_METHOD_BY_REFERENCE_RESOLVE
static int
ATTACHMENT_METHOD_BY_VALUE
static int
ATTACHMENT_METHOD_EMBEDDED
static int
ATTACHMENT_METHOD_NONE
static int
ATTACHMENT_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.String
getAttachmentContentDisposition()
Attachment content dispositionint
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 => OLEint
getAttachNum()
Attachment numberint
getAttachSize()
Attachment sizejava.lang.String
getContentId()
Attachment Content IDjava.util.Date
getCreationTime()
Creation timePSTMessage
getEmbeddedPSTMessage()
java.io.InputStream
getFileInputStream()
java.lang.String
getFilename()
Attachment (short) filename ASCII or Unicode stringint
getFilesize()
java.lang.String
getLongFilename()
Attachment long filename ASCII or Unicode stringjava.lang.String
getLongPathname()
Attachment long pathname ASCII or Unicode stringint
getMimeSequence()
Attachment mime sequencejava.lang.String
getMimeTag()
Attachment mime type ASCII or Unicode stringjava.util.Date
getModificationTime()
java.lang.String
getPathname()
Attachment (short) pathname ASCII or Unicode stringint
getRenderingPosition()
Attachment Position Integer 32-bit signedint
getSize()
boolean
isAttachmentInvisibleInHtml()
Attachment not available in HTMLboolean
isAttachmentInvisibleInRTF()
Attachment not available in RTFboolean
isAttachmentMhtmlRef()
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:PSTObject
Creation time- Overrides:
getCreationTime
in classPSTObject
-
getModificationTime
public java.util.Date getModificationTime()
-
getEmbeddedPSTMessage
public PSTMessage getEmbeddedPSTMessage() throws java.io.IOException, PSTException
- Throws:
java.io.IOException
PSTException
-
getFileInputStream
public java.io.InputStream getFileInputStream() throws java.io.IOException, PSTException
- Throws:
java.io.IOException
PSTException
-
getFilesize
public int getFilesize() throws PSTException, java.io.IOException
- Throws:
PSTException
java.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
-
-