(String... args)
| 54 | } |
| 55 | |
| 56 | public static void main(String... args) throws IOException { |
| 57 | if (args.length != 2 && args.length != 3) { |
| 58 | System.out.println("Usage: decoder <compressed_in> <decompressed_out> [repeat]"); |
| 59 | return; |
| 60 | } |
| 61 | |
| 62 | int repeat = 1; |
| 63 | if (args.length == 3) { |
| 64 | repeat = Integer.parseInt(args[2]); |
| 65 | } |
| 66 | |
| 67 | byte[] buffer = new byte[1024 * 1024]; |
| 68 | for (int i = 0; i < repeat; ++i) { |
| 69 | decompress(args[0], args[1], buffer); |
| 70 | } |
| 71 | } |
| 72 | } |
no test coverage detected