Class Header

java.lang.Object
io.github.jmcleodfoss.pst.Header

public class Header
extends Object
The Header object is the PST header.
See Also:
Encryption, FileFormat, "[MS-PST] Outlook Personal Folders (.pst) File Format v20110608, section 2.2.2.6", Header (MSDN)
  • Field Summary

    Fields 
    Modifier and Type Field Description
    io.github.jmcleodfoss.pst.BREF bbtRoot
    The location of the root of the block B-tree.
    io.github.jmcleodfoss.pst.Encryption encryption
    The encryption mechanism used by the PST file.
    io.github.jmcleodfoss.pst.FileFormat fileFormat
    The file format (ANSI or Unicode) of the PST file.
    io.github.jmcleodfoss.pst.BREF nbtRoot
    The location of the root of the node B-tree.
    static long OFFSET
    First byte of the header block.
  • Method Summary

    Modifier and Type Method Description
    static void main​(String[] args)
    Test this class by reading in the PST file header and printing it out.
    int size()
    Calculate the size of the header block.
    String toString()
    Provide a summary of the header in String form.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • OFFSET

      public static final long OFFSET
      First byte of the header block.
      See Also:
      Constant Field Values
    • fileFormat

      public final io.github.jmcleodfoss.pst.FileFormat fileFormat
      The file format (ANSI or Unicode) of the PST file.
    • encryption

      public final io.github.jmcleodfoss.pst.Encryption encryption
      The encryption mechanism used by the PST file.
    • nbtRoot

      public final io.github.jmcleodfoss.pst.BREF nbtRoot
      The location of the root of the node B-tree.
    • bbtRoot

      public final io.github.jmcleodfoss.pst.BREF bbtRoot
      The location of the root of the block B-tree.
  • Method Details

    • size

      public int size()
      Calculate the size of the header block.
      Returns:
      The size of the header for this file.
    • toString

      public String toString()
      Provide a summary of the header in String form. This is typically used for debugging.
      Overrides:
      toString in class Object
      Returns:
      A description of the header.
    • main

      public static void main​(String[] args)
      Test this class by reading in the PST file header and printing it out.
      Parameters:
      args - The command line arguments to the test application.