com.pff
Class PSTAttachment

java.lang.Object
  extended by com.pff.PSTObject
      extended by com.pff.PSTAttachment

public class PSTAttachment
extends PSTObject

Class containing attachment information


Field Summary
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, 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
 
Method Summary
 java.lang.String getAttachmentContentDisposition()
          Attachment content disposition
 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
 int getAttachNum()
          Attachment number
 int getAttachSize()
          Attachment size
 java.lang.String getContentId()
          Attachment Content ID
 java.util.Date getCreationTime()
          Creation time
 PSTMessage getEmbeddedPSTMessage()
           
 java.io.InputStream getFileInputStream()
           
 java.lang.String getFilename()
          Attachment (short) filename ASCII or Unicode string
 int getFilesize()
           
 java.lang.String getLongFilename()
          Attachment long filename ASCII or Unicode string
 java.lang.String getLongPathname()
          Attachment long pathname ASCII or Unicode string
 int getMimeSequence()
          Attachment mime sequence
 java.lang.String getMimeTag()
          Attachment mime type ASCII or Unicode string
 java.util.Date getModificationTime()
           
 java.lang.String getPathname()
          Attachment (short) pathname ASCII or Unicode string
 int getRenderingPosition()
          Attachment Position Integer 32-bit signed
 int getSize()
           
 boolean isAttachmentInvisibleInHtml()
          Attachment not available in HTML
 boolean isAttachmentInvisibleInRTF()
          Attachment not available in RTF
 boolean isAttachmentMhtmlRef()
          Attachment is MHTML REF
 
Methods inherited from class com.pff.PSTObject
apptTimeToCalendar, apptTimeToUTC, convertBigEndianBytesToLong, convertLittleEndianBytesToLong, convertLittleEndianBytesToLong, decode, 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, printHexFormatted, printHexFormatted, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Method Detail

getSize

public int getSize()

getCreationTime

public java.util.Date getCreationTime()
Description copied from class: PSTObject
Creation time

Overrides:
getCreationTime in class PSTObject

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