Class PayloadFilesManager.Temp

  • Enclosing class:
    PayloadFilesManager

    public static class PayloadFilesManager.Temp
    extends PayloadFilesManager
    Extracts files from a payload, treating them as temporary files. The caller should invoke cleanup() once it is finished with the extracted files, although the finalizer will invoke cleanup if the caller has not.
    • Constructor Detail

      • Temp

        public Temp​(ActionReport report,
                    Logger logger)
             throws IOException
        Creates a new PayloadFilesManager for temporary files.
        Parameters:
        report - results report to which extraction results will be appended
        logger - logger to receive messages
        Throws:
        IOException
      • Temp

        public Temp​(Logger logger)
             throws IOException
        Creates a new PayloadFilesManager for temporary files.
        Parameters:
        logger - logger to receive messages
        Throws:
        IOException
    • Method Detail

      • cleanup

        public void cleanup()
        Deletes the temporary files created by this temp PayloadFilesManager.
      • registerCleanupEvent

        public final void registerCleanupEvent()