public class TarArchiver extends Object implements FilesArchiver
FilesArchiver.FileAppender<T>| Modifier | Constructor and Description |
|---|---|
|
TarArchiver(File tarFile) |
protected |
TarArchiver(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tarOutput) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
appendBigFile(String path,
FilesArchiver.FileAppender<T> appender) |
void |
appendFile(String path,
File file) |
<T> T |
appendFile(String path,
FilesArchiver.FileAppender<T> appender) |
void |
close() |
protected TarArchiver(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tarOutput)
public TarArchiver(File tarFile) throws FileNotFoundException
FileNotFoundExceptionpublic <T> T appendFile(String path, FilesArchiver.FileAppender<T> appender) throws IOException
appendFile in interface FilesArchiverIOExceptionpublic <T> T appendBigFile(String path, FilesArchiver.FileAppender<T> appender) throws IOException
appendBigFile in interface FilesArchiverIOExceptionpublic void appendFile(String path, File file) throws IOException
appendFile in interface FilesArchiverIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016. All rights reserved.