I need to identify the whether a particular zip or rar file is splitted or not.
Is there any library to deal with archive file in java?
I need to identify the whether a particular zip or rar file is splitted or not.
Is there any library to deal with archive file in java?
Usually multivolume RAR Files will follow the following name convention:
somefile.part01.rar
somefile.part02.rar
somefile.part03.rar
Or, using the older naming convention, like this:
somefile.r00
somefile.r01
somefile.r02
For Zip files: A split archive with 20 split files the files are typically named (replace ARCHIVE with the name of your archive) :
ARCHIVE.z01
ARCHIVE.z02
...
ARCHIVE.z19
ARCHIVE.zip
Note that the last file is the .zip file.
For more information take a look at: