public final class ZipUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
write(File file,
ZipOutputStream outputStream)
Writes the given file to the given ZIP output.
|
static void |
write(File file,
ZipOutputStream outputStream,
Set<String> excludeSet,
boolean isReadableOnly)
Writes the given file to the given ZIP output, skipping files that are unreadable
|
public static void write(File file, ZipOutputStream outputStream) throws NullPointerException, IOException
file
- file to writeoutputStream
- stream to write the file intoNullPointerException
- if either file or outputStream is nullIOException
- if an I/O error has occurredpublic static void write(File file, ZipOutputStream outputStream, Set<String> excludeSet, boolean isReadableOnly) throws NullPointerException, IOException
file
- file to writeoutputStream
- stream to write the file intoexcludeSet
- set of simple file names to exclude from zippingisReadableOnly
- skip unreadable filesNullPointerException
- if either file or outputStream is nullIOException
- if an I/O error has occurredCopyright © 2015. All Rights Reserved.