How to extract/decompress the source file which is in different file format (.Z, .gz, .zip) in a single java code?