Mercurial > hg > icedrobot > daneel
changeset 21:36544db798e9
Refactoring remove file.
author | Mario Torre <neugens.limasoftware@gmail.com> |
---|---|
date | Wed, 16 Mar 2011 02:04:39 +0100 |
parents | 03d932822bf7 |
children | 93f66dd56986 |
files | src/main/java/org/icedrobot/daneel/dex/Main.java src/main/java/org/icedrobot/daneel/tools/Main.java |
diffstat | 2 files changed, 22 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/org/icedrobot/daneel/dex/Main.java Wed Mar 16 02:02:58 2011 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -package org.icedrobot.daneel.dex; - -import java.io.File; -import java.io.RandomAccessFile; -import java.nio.ByteBuffer; -import java.nio.channels.FileChannel; - -public class Main { - - public static void main(String[] args) throws Exception { - String dexFileName = args[0]; - File dexFile = new File(dexFileName); - RandomAccessFile dexFileAccess = new RandomAccessFile(dexFile, "r"); - FileChannel dexFileChannel = dexFileAccess.getChannel(); - ByteBuffer dexFileBuffer = dexFileChannel.map( - FileChannel.MapMode.READ_ONLY, 0, dexFile.length()); - DexFile parsedDexFile = DexFile.parse(dexFileBuffer); - System.out.println(parsedDexFile); - } - -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/org/icedrobot/daneel/tools/Main.java Wed Mar 16 02:04:39 2011 +0100 @@ -0,0 +1,22 @@ +package org.icedrobot.daneel.tools; + +import java.io.File; +import java.io.RandomAccessFile; +import java.nio.ByteBuffer; +import java.nio.channels.FileChannel; +import org.icedrobot.daneel.dex.DexFile; + +public class Main { + + public static void main(String[] args) throws Exception { + String dexFileName = args[0]; + File dexFile = new File(dexFileName); + RandomAccessFile dexFileAccess = new RandomAccessFile(dexFile, "r"); + FileChannel dexFileChannel = dexFileAccess.getChannel(); + ByteBuffer dexFileBuffer = dexFileChannel.map( + FileChannel.MapMode.READ_ONLY, 0, dexFile.length()); + DexFile parsedDexFile = DexFile.parse(dexFileBuffer); + System.out.println(parsedDexFile); + } + +}