Class Msg2txt


  • public class Msg2txt
    extends Object
    Reads one or several Outlook MSG files and for each of them creates a text file from available chunks and a directory that contains attachments.
    • Method Detail

      • processMessage

        public void processMessage()
                            throws IOException
        Processes the message.
        Throws:
        IOException - if an exception occurs while writing the message out
      • processAttachment

        public void processAttachment​(AttachmentChunks attachment,
                                      File dir)
                               throws IOException
        Processes a single attachment: reads it from the Outlook MSG file and writes it to disk as an individual file.
        Parameters:
        attachment - the chunk group describing the attachment
        dir - the directory in which to write the attachment file
        Throws:
        IOException - when any of the file operations fails
      • main

        public static void main​(String[] args)
        Processes the list of arguments as a list of names of Outlook MSG files.
        Parameters:
        args - the list of MSG files to process