public enum CompressionType extends Enum<CompressionType>
| Modifier and Type | Method and Description |
|---|---|
void |
compress(Path sourceDir,
Path outputFile) |
void |
compress(Path sourceDir,
Path outputFile,
Manifest manifest) |
void |
explode(Path compressedFile,
Path outputDir) |
void |
explode(Path compressedFile,
Path outputDir,
Consumer<String> loggingConsumer) |
abstract ZipEntry |
getEntry(String name) |
String |
getExtension() |
abstract ZipInputStream |
getInputStream(InputStream inputStream) |
abstract ZipOutputStream |
getOutputStream(OutputStream outputStream,
Manifest manifest) |
static CompressionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
walk(Path compressedFile,
Consumer<ZipEntry> entryConsumer) |
public static final CompressionType JAR
public static final CompressionType ZIP
public static CompressionType[] values()
for (CompressionType c : CompressionType.values()) System.out.println(c);
public static CompressionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getExtension()
public abstract ZipInputStream getInputStream(InputStream inputStream) throws IOException
IOExceptionpublic abstract ZipOutputStream getOutputStream(OutputStream outputStream, Manifest manifest) throws IOException
IOExceptionpublic void walk(Path compressedFile, Consumer<ZipEntry> entryConsumer) throws IOException
IOExceptionpublic void compress(Path sourceDir, Path outputFile) throws IOException
IOExceptionpublic void compress(Path sourceDir, Path outputFile, Manifest manifest) throws IOException
IOExceptionpublic void explode(Path compressedFile, Path outputDir) throws IOException
IOExceptionpublic void explode(Path compressedFile, Path outputDir, Consumer<String> loggingConsumer) throws IOException
IOExceptionCopyright © 2019. All rights reserved.