this.zipFilePath = zipFilePath;
this.compressPath = compressFile.getAbsolutePath();
- /*if (this.zipFilePath == null) {
- StringBuffer zipFilePathBuf = new StringBuffer(this.compressPath);
- int bufLen = zipFilePathBuf.length();
- if (zipFilePathBuf.charAt(bufLen - 1) == '/')
- zipFilePathBuf.deleteCharAt(bufLen - 1);
- this.zipFilePath = zipFilePathBuf.append(".zip").toString();
- }*/
- relativeAddrIdx = this.compressPath.lastIndexOf(File.separator) + 1;
+ relativeAddrIdx = this.compressPath.lastIndexOf(File.separator) + 1;
}
public void compress() throws IOException {