com.atlassian.core.util.zip
Class FolderAppender
java.lang.Object
com.atlassian.core.util.zip.FolderAppender
public class FolderAppender
- extends Object
This class is able to append directory recursively to the archive related to provided
FileArchiver
- Since:
- v6.4
|
Method Summary |
void |
append()
Appends file or directory based on parameters used to construct the FolderAppender
object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FolderAppender
public FolderAppender(FileArchiver fileArchiver,
File rootFolderToCompress,
String targetRootArchivePath,
File archiveFile)
- Parameters:
fileArchiver - the FileArchiverrootFolderToCompress - handle to directory which will be appended to archive with all subdirectories recursivelytargetRootArchivePath - the path used as target directory within archive, so all files and directories inside
archive will start with this patharchiveFile - handle to result archive file, needed to avoid compressing himself
FolderAppender
public FolderAppender(FileArchiver fileArchiver,
File rootFolderToCompress,
ArchiveParams archiveParams,
File archiveFile)
- Parameters:
fileArchiver - the FileArchiverrootFolderToCompress - handle to directory which will be appended to archive with all subdirectories
recursivelyarchiveParams - parameters for the files in the folder to be added the to archive
append
public void append()
throws IOException
- Appends file or directory based on parameters used to construct the
FolderAppender
object.
- Throws:
IOException
Copyright © 2015 Atlassian. All rights reserved.