final File uncompressed = new File(dest, file.getName().substring(0,
file.getName().lastIndexOf('.')));
final FileInputStream fileInput = new FileInputStream(file);
InputStream in = new LzmaInputStream(fileInput);
OutputStream out = new FileOutputStream(uncompressed);
final byte[] buffer = new byte[16384];
int ret = in.read(buffer);
while (ret >= 1)
{
out.write(buffer, 0, ret);
ret = in.read(buffer);
}
in.close();
out.close();
in = null;
out = null;