|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pff.PSTObject
public class PSTObject
PST Object is the root class of all PST Items. It also provides a number of static utility functions. The most important of which is the detectAndLoadPSTObject call which allows extraction of a PST Item from the file.
Constructor Summary | |
---|---|
protected |
PSTObject(PSTFile theFile,
DescriptorIndexNode descriptorIndexNode)
|
protected |
PSTObject(PSTFile theFile,
DescriptorIndexNode folderIndexNode,
com.pff.PSTTableBC table,
java.util.HashMap<java.lang.Integer,com.pff.PSTDescriptorItem> localDescriptorItems)
for pre-population |
Method Summary | |
---|---|
static java.util.Calendar |
apptTimeToCalendar(int minutes)
|
static java.util.Calendar |
apptTimeToUTC(int minutes,
PSTTimeZone tz)
|
static long |
convertBigEndianBytesToLong(byte[] data,
int start,
int end)
Utility function for converting big endian bytes into a usable java long |
static long |
convertLittleEndianBytesToLong(byte[] data)
Utility function for converting little endian bytes into a usable java long |
static long |
convertLittleEndianBytesToLong(byte[] data,
int start,
int end)
Utility function for converting little endian bytes into a usable java long |
protected static byte[] |
decode(byte[] data)
decode a lump of data that has been encrypted with the compressible encryption |
static PSTObject |
detectAndLoadPSTObject(PSTFile theFile,
long descriptorIndex)
Detect and load a PST Object from a file with the specified descriptor index |
protected static byte[] |
encode(byte[] data)
|
protected static java.util.Date |
filetimeToDate(int high,
int low)
Converts a Windows FILETIME into a Date . |
java.lang.String |
getAddrType()
Address type Known values are SMTP, EX (Exchange) and UNKNOWN |
protected byte[] |
getBinaryItem(int identifier)
|
protected boolean |
getBooleanItem(int identifier)
|
protected boolean |
getBooleanItem(int identifier,
boolean defaultValue)
|
java.lang.String |
getComment()
Comment |
java.util.Date |
getCreationTime()
Creation time |
java.util.Date |
getDateItem(int identifier)
|
DescriptorIndexNode |
getDescriptorNode()
get the descriptor node for this item this identifies the location of the node in the BTree and associated info |
long |
getDescriptorNodeId()
get the descriptor identifier for this item can be used for loading objects through detectAndLoadPSTObject(PSTFile theFile, long descriptorIndex) |
java.lang.String |
getDisplayName()
get the display name |
protected double |
getDoubleItem(int identifier)
|
protected double |
getDoubleItem(int identifier,
double defaultValue)
|
java.lang.String |
getEmailAddress()
E-mail address |
protected int |
getIntItem(int identifier)
|
protected int |
getIntItem(int identifier,
int defaultValue)
|
java.lang.String |
getItemsString()
|
java.util.Date |
getLastModificationTime()
Modification time |
protected long |
getLongItem(int identifier)
|
protected long |
getLongItem(int identifier,
long defaultValue)
|
java.lang.String |
getMessageClass()
|
int |
getNodeType()
|
static int |
getNodeType(int descriptorIdentifier)
|
protected java.lang.String |
getStringItem(int identifier)
|
protected java.lang.String |
getStringItem(int identifier,
int stringType)
|
protected java.lang.String |
getStringItem(int identifier,
int stringType,
java.lang.String codepage)
|
protected PSTTimeZone |
getTimeZoneItem(int identifier)
|
static void |
printHexFormatted(byte[] data,
boolean pretty)
Output a dump of data in hex format in the order it was read in |
protected static void |
printHexFormatted(byte[] data,
boolean pretty,
int[] indexes)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NID_TYPE_HID
public static final int NID_TYPE_INTERNAL
public static final int NID_TYPE_NORMAL_FOLDER
public static final int NID_TYPE_SEARCH_FOLDER
public static final int NID_TYPE_NORMAL_MESSAGE
public static final int NID_TYPE_ATTACHMENT
public static final int NID_TYPE_SEARCH_UPDATE_QUEUE
public static final int NID_TYPE_SEARCH_CRITERIA_OBJECT
public static final int NID_TYPE_ASSOC_MESSAGE
public static final int NID_TYPE_CONTENTS_TABLE_INDEX
public static final int NID_TYPE_RECEIVE_FOLDER_TABLE
public static final int NID_TYPE_OUTGOING_QUEUE_TABLE
public static final int NID_TYPE_HIERARCHY_TABLE
public static final int NID_TYPE_CONTENTS_TABLE
public static final int NID_TYPE_ASSOC_CONTENTS_TABLE
public static final int NID_TYPE_SEARCH_CONTENTS_TABLE
public static final int NID_TYPE_ATTACHMENT_TABLE
public static final int NID_TYPE_RECIPIENT_TABLE
public static final int NID_TYPE_SEARCH_TABLE_INDEX
public static final int NID_TYPE_LTP
protected PSTFile pstFile
protected byte[] data
protected DescriptorIndexNode descriptorIndexNode
protected java.util.HashMap<java.lang.Integer,com.pff.PSTTableBCItem> items
protected java.util.HashMap<java.lang.Integer,com.pff.PSTDescriptorItem> localDescriptorItems
protected java.util.LinkedHashMap<java.lang.String,java.util.HashMap<DescriptorIndexNode,PSTObject>> children
protected com.pff.PSTTableBC table
Constructor Detail |
---|
protected PSTObject(PSTFile theFile, DescriptorIndexNode descriptorIndexNode) throws PSTException, java.io.IOException
PSTException
java.io.IOException
protected PSTObject(PSTFile theFile, DescriptorIndexNode folderIndexNode, com.pff.PSTTableBC table, java.util.HashMap<java.lang.Integer,com.pff.PSTDescriptorItem> localDescriptorItems)
theFile
- folderIndexNode
- table
- Method Detail |
---|
public java.lang.String getItemsString()
public DescriptorIndexNode getDescriptorNode()
public long getDescriptorNodeId()
public int getNodeType()
public static int getNodeType(int descriptorIdentifier)
protected int getIntItem(int identifier)
protected int getIntItem(int identifier, int defaultValue)
protected boolean getBooleanItem(int identifier)
protected boolean getBooleanItem(int identifier, boolean defaultValue)
protected double getDoubleItem(int identifier)
protected double getDoubleItem(int identifier, double defaultValue)
protected long getLongItem(int identifier)
protected long getLongItem(int identifier, long defaultValue)
protected java.lang.String getStringItem(int identifier)
protected java.lang.String getStringItem(int identifier, int stringType)
protected java.lang.String getStringItem(int identifier, int stringType, java.lang.String codepage)
public java.util.Date getDateItem(int identifier)
protected byte[] getBinaryItem(int identifier)
protected PSTTimeZone getTimeZoneItem(int identifier)
public java.lang.String getMessageClass()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDisplayName()
public java.lang.String getAddrType()
public java.lang.String getEmailAddress()
public java.lang.String getComment()
public java.util.Date getCreationTime()
public java.util.Date getLastModificationTime()
public static void printHexFormatted(byte[] data, boolean pretty)
data
- pretty
- protected static void printHexFormatted(byte[] data, boolean pretty, int[] indexes)
protected static byte[] decode(byte[] data)
data
-
protected static byte[] encode(byte[] data)
public static long convertLittleEndianBytesToLong(byte[] data)
data
-
public static long convertLittleEndianBytesToLong(byte[] data, int start, int end)
data
- start
- end
-
public static long convertBigEndianBytesToLong(byte[] data, int start, int end)
data
- start
- end
-
public static PSTObject detectAndLoadPSTObject(PSTFile theFile, long descriptorIndex) throws java.io.IOException, PSTException
theFile
- descriptorIndex
-
java.io.IOException
PSTException
protected static java.util.Date filetimeToDate(int high, int low)
Converts a Windows FILETIME into a Date
. The Windows
FILETIME structure holds a date and time associated with a
file. The structure identifies a 64-bit integer specifying the
number of 100-nanosecond intervals which have passed since
January 1, 1601. This 64-bit value is split into the two double
words stored in the structure.
high
- The higher double word of the FILETIME structure.low
- The lower double word of the FILETIME structure.
Date
.public static java.util.Calendar apptTimeToCalendar(int minutes)
public static java.util.Calendar apptTimeToUTC(int minutes, PSTTimeZone tz)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |