Package com.pff

Class PSTDistList


  • public class PSTDistList
    extends PSTMessage
    PST DistList for extracting Addresses from Distribution lists.
    • Field Detail

      • oneOffEntryIdUid

        private byte[] oneOffEntryIdUid
        identifier for one-off entries.
      • wrappedEntryIdUid

        private byte[] wrappedEntryIdUid
        identifier for wrapped entries.
    • Constructor Detail

      • PSTDistList

        PSTDistList​(PSTFile theFile,
                    DescriptorIndexNode descriptorIndexNode)
             throws PSTException,
                    java.io.IOException
        constructor.
        Parameters:
        theFile - pst file
        descriptorIndexNode - index of the list
        Throws:
        PSTException - on parsing error
        java.io.IOException - on data access error
      • PSTDistList

        PSTDistList​(PSTFile theFile,
                    DescriptorIndexNode folderIndexNode,
                    PSTTableBC table,
                    java.util.HashMap<java.lang.Integer,​PSTDescriptorItem> localDescriptorItems)
        Internal constructor for performance.
        Parameters:
        theFile - pst file
        folderIndexNode - index of the list
        table - the PSTTableBC this object is represented by
        localDescriptorItems - additional external items that represent this object.
    • Method Detail

      • findNextNullChar

        private int findNextNullChar​(byte[] data,
                                     int start)
        Find the next two null bytes in an array given start.
        Parameters:
        data - the array to search
        start - the starting index
        Returns:
        position of the next null char
      • parseOneOffEntry

        private PSTDistList.OneOffEntry parseOneOffEntry​(byte[] data,
                                                         int pos)
                                                  throws java.io.IOException
        Parse a one-off entry from this Distribution List.
        Parameters:
        data - the item data
        pos - the current position in the data.
        Returns:
        the one-off entry
        Throws:
        java.io.IOException - on string reading fail
      • getDistributionListMembers

        public java.lang.Object[] getDistributionListMembers()
                                                      throws PSTException,
                                                             java.io.IOException
        Get an array of the members in this distribution list.
        Returns:
        array of entries that can either be PSTDistList.OneOffEntry or a PSTObject, generally PSTContact.
        Throws:
        PSTException - on corrupted data
        java.io.IOException - on bad string reading