Class DirectoriesZipper
- java.lang.Object
-
- org.apache.commons.io.DirectoryWalker<Object>
-
- org.jvnet.hudson.plugins.thinbackup.backup.DirectoriesZipper
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class DirectoriesZipper extends org.apache.commons.io.DirectoryWalker<Object> implements Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static int
BUFFER_SIZE
-
Constructor Summary
Constructors Constructor Description DirectoriesZipper(File zipFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToZip(File directory)
void
close()
protected void
handleFile(File file, int depth, Collection<Object> results)
-
-
-
Field Detail
-
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DirectoriesZipper
public DirectoriesZipper(File zipFile) throws IOException
- Throws:
IOException
-
-
Method Detail
-
addToZip
public void addToZip(File directory) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
handleFile
protected void handleFile(File file, int depth, Collection<Object> results)
- Overrides:
handleFile
in classorg.apache.commons.io.DirectoryWalker<Object>
-
-