Я хочу распаковать строку Используя SevenZFile lib, в распакованном виде они хотят указать путь к файлу и файл, который я предоставляю, но все равно показывает мне Java Нет исключений SuchFile.
public static String decompressText(String in, File destination) throws IOException {
String strResult = "";
SevenZFile sevenZFile = new SevenZFile(new File(in));
SevenZArchiveEntry entry;
while ((entry = sevenZFile.getNextEntry()) != null) {
if (entry.isDirectory()) {
continue;
}
File curfile = new File(destination, entry.getName());
File parent = curfile.getParentFile();
if (!parent.exists()) {
parent.mkdirs();
}
FileOutputStream out = new FileOutputStream(curfile);
byte[] content = new byte[(int) entry.getSize()];
/* sevenZFile.read(content, 0, content.length);
out.write(content);
out.close();*/
strResult = Base64.encodeBytes(content);
out.close();
}
return strResult;
}