List of utility methods to do Zip Unzip Directory
void | zipDirectory(File directory, File zip) zip Directory ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zip)); zip(directory, directory, zos); zos.close(); |
void | zipDirectory(File directory, File zip) zip Directory fileLength = zip.length(); ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(zip)); zip(directory, directory, zos); zos.close(); |
void | zipDirectory(File folder, String parentFolder, ZipOutputStream zos) Adds a directory to the current zip output stream for (File file : folder.listFiles()) { if (file.isDirectory()) { zipDirectory(file, parentFolder + "/" + file.getName(), zos); continue; zos.putNextEntry(new ZipEntry(parentFolder + "/" + file.getName())); BufferedInputStream bis = null; ... |
Bitmap | compress(String filePath, int width, int height) compress BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; Bitmap bitmap = BitmapFactory.decodeFile(filePath, options); int bmpWidth = options.outWidth; int bmpHeight = options.outHeight; options.inJustDecodeBounds = false; bitmap = BitmapFactory.decodeFile(filePath, options); float scaleWidth = bmpWidth; ... |
String | compress(String paramString) compress return new String(compress(paramString.getBytes("utf-8")), "utf-8"); |
void | compress(String path) compress compress(path, true); |
void | compress(String path) compress compress(path, true); |
void | compress(String path, boolean delete) compress File file = new File(path);
compress(file, delete);
|
void | compress(String path, boolean delete) compress File file = new File(path);
compress(file, delete);
|