ArchiveTool
A standalone archive tool to compress directories. It does not have any
dependencies except for the Java libraries.
Unlike other compression tools, it splits the data into chunks and sorts the
chunks, so that large directories or files that contain duplicate data are
compressed much better.
| Methods |
| static void |
main(String... args)
Run the tool.
|
| static void |
main(String... args) throws Exception
Run the tool.
Parameters:
args - the command line arguments
|
| static long |
readVarLong(InputStream in)
Read a variable size long value.
|
| static long |
readVarLong(InputStream in) throws IOException
Read a variable size long value.
Parameters:
in - the input stream
Returns:
the value
|
| static int |
writeVarLong(OutputStream out, long x)
Write a variable size long value.
|
| static int |
writeVarLong(OutputStream out, long x) throws IOException
Write a variable size long value.
Parameters:
out - the output stream
x - the value
Returns:
the number of bytes written
|