private void createOutputDir() { String comicName = mBukaFile.getComicName(); int chapterId = mBukaFile.getChapterId(); File output = new File("output"); if (!output.exists() || !output.isDirectory()) { output.mkdir(); } File targetDir = new File(output, comicName + "-" + chapterId); if (!targetDir.exists() || !targetDir.isDirectory()) { targetDir.mkdir(); } mOutputDir = targetDir; }
private void clean() { try { if (mBukaFile != null) mBukaFile.close(); } catch (IOException e) { e.printStackTrace(); } }
private void extractBukaFile() throws IOException { mBukaFile.extractTo(mOutputDir); }