public interface Compressor
| Modifier and Type | Method and Description |
|---|---|
void |
compress(File source,
File destination)
Compresses the given input file to the given destination directory or file.
|
void |
decompress(File source,
File destination)
Decompresses the given source file to the given destination directory or file.
|
String |
getFilenameExtension()
Returns the filename extension that indicates the file format this compressor handles.
|
void compress(File source, File destination) throws IllegalArgumentException, IOException
source - the source file to compressdestination - the destination fileIllegalArgumentException - if the source is not readable or the destination is not writableIOException - when an I/O error occursvoid decompress(File source, File destination) throws IllegalArgumentException, IOException
source - the compressed source file to decompressdestination - the destination fileIllegalArgumentException - if the source is not readable or the destination is not writableIOException - when an I/O error occursString getFilenameExtension()
Copyright © 2013-2015. All Rights Reserved.