Usage - HJSplit for Java!
GUI
- Splitting a file
- Joining files
- Comparing two files
- Calculating the Checksum
- Look 'n' Feel
Command Line
- Splitting a file
- Joining files
- Comparing two files
- Calculating the Checksum
Splitting a file
A file can be split into two or more parts. First select the file to split. The new files will be created in the same directory as the original file, with same name except for the suffixes, starting at .001 and increasing for each file.
You can specify the size of the new files in either KB (KiloBytes) or MB (MegaBytes).
For example, if we choose to split the 5 MB file C:\movie.mpg into files of the size 1 MB, we would end up with five files, the first one would be C:\movie.mpg.001 and the last one would be C:\movie.mpg.005.

^

Joining files
Two or more files can be joined back into the original file. To do so, select the first of the splitted files, which has the suffix .001. The other files (.002, .003 etc...) are automagically discovered as they must/should be located in the same directory.
If a file with the name of the original file exists, you will be asked whether to choose a new filename or whether to overwrite the existing file.
You can also change the name and directory of the joint file by clicking on the "Output File" button.

^

Comparing two files
Two files can be compared at byte level. If the two files are of equal size, and their content is equal, they are considered to be equal.
If the files are equally sized, a byte-by-byte scan is performed. If the files differ, you will be told at which byte they first differed.

^

Calculating the checksum of a file
The checksum of a file can be calculated.
Currently, the checksum calculated is not compatible with the checksum calculated by the Windows version of HJSplit.
Why? I haven't yet figured out how they calculate it... :-)

^

Look 'n' Feel
The look & feel of the application can be modified into three different modes:
  • Java Look 'n' Feel (aka Metal) Default
  • Motif
  • Windows

^

Splitting a file using command line

You can split a file directly from the command line without using the GUI, for example if you telnet in to another machine from which you cannot open a window.
For example, by passing the following command

java -jar hjsplit.jar -s 1.44 -c split -f foo.mp3

the file foo.mp3 would be split into files of the size 1.44 MB.

^

Joining files using command line

It's just as easy to join files using the command line as it is to split. For example, by passing the following command

java -jar hjsplit.jar -c join -f foo.mp3.001

the file foo.mp3 would be created from the file foo.mp3.001, foo.mp3.002 etc...

^

Comparing two files using command line

You can compare two file byte-by-byte using the command line. For example, by passing the following command

java -jar hjsplit.jar -c compare -f foo.mp3 -f2 bar.mp3

the files foo.mp3 and bar.mp3 would be compared.

^

Calculating the checksum of a file using command line

You can calculate the checksum of a file using the command line by passing the following command:

java -jar hjsplit.jar -c checksum -f foo.mp3

Which would calculate and print the checksum of the file foo.mp3.

^