Class FileBatch

    • Field Detail

      • ORIGINAL_PATHS_FILENAME

        public static final String ORIGINAL_PATHS_FILENAME
        Name of the file in the zip file that contains the original paths/filenames
        See Also:
        Constant Field Values
    • Constructor Detail

      • FileBatch

        public FileBatch()
    • Method Detail

      • forFiles

        public static FileBatch forFiles​(File... files)
                                  throws IOException
        Create a FileBatch from the specified files
        Parameters:
        files - Files to create the FileBatch from
        Returns:
        The created FileBatch
        Throws:
        IOException - If an error occurs during reading of the file content
      • forFiles

        public static FileBatch forFiles​(List<File> files)
                                  throws IOException
        Create a FileBatch from the specified files
        Parameters:
        files - Files to create the FileBatch from
        Returns:
        The created FileBatch
        Throws:
        IOException - If an error occurs during reading of the file content
      • writeAsZip

        public void writeAsZip​(File f)
                        throws IOException
        Write the FileBatch to the specified File, in zip file format
        Parameters:
        f - File to write to
        Throws:
        IOException - If an error occurs during writing
      • writeAsZip

        public void writeAsZip​(OutputStream os)
                        throws IOException
        Parameters:
        os - Write the FileBatch to the specified output stream, in zip file format
        Throws:
        IOException - If an error occurs during writing