public class PSTFolder extends PSTObject
| Modifier and Type | Field and Description |
|---|---|
private int |
currentEmailIndex
internal vars for the tracking of things..
|
private PSTTable7C |
emailsTable |
private java.util.LinkedList<DescriptorIndexNode> |
fallbackEmailsTable |
private java.util.LinkedHashSet<DescriptorIndexNode> |
otherItems |
private PSTTable7C |
subfoldersTable |
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 and Description |
|---|
PSTFolder(PSTFile theFile,
DescriptorIndexNode descriptorIndexNode)
a constructor for the rest of us...
|
PSTFolder(PSTFile theFile,
DescriptorIndexNode folderIndexNode,
PSTTableBC table,
java.util.HashMap<java.lang.Integer,PSTDescriptorItem> localDescriptorItems)
For pre-populating a folder object with values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAssociateContentCount() |
java.util.LinkedList<java.lang.Integer> |
getChildDescriptorNodes() |
java.util.Vector<PSTObject> |
getChildren(int numberToReturn)
get some children from the folder
This is implemented as a cursor of sorts, as there could be thousands
and that is just too many to process at once.
|
java.lang.String |
getContainerClass() |
int |
getContainerFlags()
Container flags Integer 32-bit signed
|
int |
getContentCount()
the number of emails in this folder
this is as reported by the PST file, for a number calculated by the
library use getEmailCount
|
int |
getEmailCount()
the number of emails in this folder
this is the count of emails made by the library and will therefore should
be more accurate than getContentCount
|
int |
getFolderType() |
PSTObject |
getNextChild()
Get the next child of this folder
As there could be thousands of emails, we have these kind of cursor
operations
|
int |
getSubFolderCount()
the number of child folders in this folder
|
java.util.Vector<PSTFolder> |
getSubFolders()
get all of the sub folders...
|
int |
getUnreadCount()
Amount of unread content items Integer 32-bit signed
|
boolean |
hasSubfolders()
does this folder have subfolders
once again, read from the PST, use getSubFolderCount if you want to know
what the library makes of it all
|
private void |
initEmailsTable()
this method goes through all of the children and sorts them into one of
the three hash sets.
|
private void |
initSubfoldersTable() |
void |
moveChildCursorTo(int newIndex)
move the internal folder cursor to the desired position
position 0 is before the first record.
|
apptTimeToCalendar, apptTimeToUTC, convertBigEndianBytesToLong, convertLittleEndianBytesToLong, convertLittleEndianBytesToLong, createAppropriatePSTMessageObject, createJavaString, decode, detectAndLoadPSTObject, detectAndLoadPSTObject, encode, filetimeToDate, getAddrType, getBinaryItem, getBooleanItem, getBooleanItem, getComment, getCreationTime, 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, toStringprivate int currentEmailIndex
private final java.util.LinkedHashSet<DescriptorIndexNode> otherItems
private PSTTable7C emailsTable
private java.util.LinkedList<DescriptorIndexNode> fallbackEmailsTable
private PSTTable7C subfoldersTable
PSTFolder(PSTFile theFile, DescriptorIndexNode descriptorIndexNode) throws PSTException, java.io.IOException
theFile - descriptorIndexNode - PSTExceptionjava.io.IOExceptionPSTFolder(PSTFile theFile, DescriptorIndexNode folderIndexNode, PSTTableBC table, java.util.HashMap<java.lang.Integer,PSTDescriptorItem> localDescriptorItems)
theFile - folderIndexNode - table - public java.util.Vector<PSTFolder> getSubFolders() throws PSTException, java.io.IOException
PSTExceptionjava.io.IOExceptionprivate void initSubfoldersTable()
throws java.io.IOException,
PSTException
java.io.IOExceptionPSTExceptionprivate void initEmailsTable()
throws PSTException,
java.io.IOException
PSTExceptionjava.io.IOExceptionpublic java.util.Vector<PSTObject> getChildren(int numberToReturn) throws PSTException, java.io.IOException
numberToReturn - PSTExceptionjava.io.IOExceptionpublic java.util.LinkedList<java.lang.Integer> getChildDescriptorNodes()
throws PSTException,
java.io.IOException
PSTExceptionjava.io.IOExceptionpublic PSTObject getNextChild() throws PSTException, java.io.IOException
PSTExceptionjava.io.IOExceptionpublic void moveChildCursorTo(int newIndex)
throws java.io.IOException,
PSTException
newIndex - java.io.IOExceptionPSTExceptionpublic int getSubFolderCount()
throws java.io.IOException,
PSTException
java.io.IOExceptionPSTExceptionpublic int getEmailCount()
throws java.io.IOException,
PSTException
java.io.IOExceptionPSTExceptionpublic int getFolderType()
public int getContentCount()
public int getUnreadCount()
public boolean hasSubfolders()
public java.lang.String getContainerClass()
public int getAssociateContentCount()
public int getContainerFlags()