public void run(){ try { archive.extractFile(header, cbb.getOutputStream()); } catch (RarException e) { if (e.getType() != RarExceptionType.crcError) e.printStackTrace(); } finally { try { cbb.getOutputStream().close(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } } }
public void run(){ MuArchiveExtractCallback extractCallbackSpec = new MuArchiveExtractCallback(cbb.getOutputStream(), entry.getPath()); extractCallbackSpec.Init(sevenZipFile); try { sevenZipFile.Extract(arrays, 1, IInArchive.NExtract_NAskMode_kExtract , extractCallbackSpec); } catch (Exception e) { e.printStackTrace(); // return; } } }