Class ZipDumpDestination

    • Constructor Detail

      • ZipDumpDestination

        public ZipDumpDestination​(File directory,
                                  String name)
        Creates new dump in given directory.
        Parameters:
        directory - Target directory.
        name - Name of the archive.
      • ZipDumpDestination

        public ZipDumpDestination​(File file)
        Creates new dump in given file (zip archive).
        Parameters:
        file - Destination file.
    • Method Detail

      • add

        public OutputStream add​(String name)
                         throws Exception
        Create new entry in dump destination. Destination does not close returned output stream by default, dump provider should do this after completing write operation.
        Specified by:
        add in interface DumpDestination
        Parameters:
        name - Name of file in destination.
        Returns:
        Output stream ready to write.
        Throws:
        Exception - When entry cannot be added.