diff options
author | Andrew Dolgov <[email protected]> | 2014-10-24 15:08:53 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-10-24 15:08:53 +0400 |
commit | 3d3e56bc75f19609c7d24238122722b16b1cd160 (patch) | |
tree | ae7723cc53cfc46b282712e9783931671a61720a /org.fox.ttcomics/src/main/java/com/github/junrar/MVTest.java | |
parent | e83b41e97dc264d562a52e17bd9c185dcd76dcad (diff) |
remove unrar library because it sucks
use cardview for comic tiles
remove comics list
Diffstat (limited to 'org.fox.ttcomics/src/main/java/com/github/junrar/MVTest.java')
-rw-r--r-- | org.fox.ttcomics/src/main/java/com/github/junrar/MVTest.java | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/org.fox.ttcomics/src/main/java/com/github/junrar/MVTest.java b/org.fox.ttcomics/src/main/java/com/github/junrar/MVTest.java deleted file mode 100644 index 36c33c8..0000000 --- a/org.fox.ttcomics/src/main/java/com/github/junrar/MVTest.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.github.junrar; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; - -import com.github.junrar.exception.RarException; -import com.github.junrar.impl.FileVolumeManager; -import com.github.junrar.rarfile.FileHeader; - - -public class MVTest { - - /** - * @param args - */ - public static void main(String[] args) { - String filename = "/home/rogiel/fs/home/ae721273-eade-45e7-8112-d14115ebae56/Village People - Y.M.C.A.mp3.part1.rar"; - File f = new File(filename); - Archive a = null; - try { - a = new Archive(new FileVolumeManager(f)); - } catch (RarException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - if (a != null) { - a.getMainHeader().print(); - FileHeader fh = a.nextFileHeader(); - while (fh != null) { - try { - File out = new File("/home/rogiel/fs/test/" - + fh.getFileNameString().trim()); - System.out.println(out.getAbsolutePath()); - FileOutputStream os = new FileOutputStream(out); - a.extractFile(fh, os); - os.close(); - } catch (FileNotFoundException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (RarException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - fh = a.nextFileHeader(); - } - } - } -} |