public class FileArchiver extends Object
Constructor and Description |
---|
FileArchiver(ZipOutputStream zipOutputStream) |
Modifier and Type | Method and Description |
---|---|
void |
addDirectoryToArchive(File file,
String path,
String archiveFolderName) |
void |
addToArchive(File file,
String path,
String archiveFolderToCreate)
Adds file to the current archive output stream
|
public FileArchiver(ZipOutputStream zipOutputStream)
public void addToArchive(File file, String path, String archiveFolderToCreate) throws IOException
file
- file to add to archivearchiveFolderToCreate
- name of topmost folder to create inside of the archive, leave blank to not create.IOException
- if can't read from file or can't write to outputpublic void addDirectoryToArchive(File file, String path, String archiveFolderName) throws IOException
IOException
Copyright © 2003–2017 Atlassian. All rights reserved.