コード例 #1
0
 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;
 }
コード例 #2
0
 private void clean() {
   try {
     if (mBukaFile != null) mBukaFile.close();
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
コード例 #3
0
 private void extractBukaFile() throws IOException {
   mBukaFile.extractTo(mOutputDir);
 }