how to know actual file type in java -


i have file example 5555.33 in fact file arj archive file

string ext = filenameutils.getextension("c:\\5555.33");  

the extension returns 33 file. how actual file type arj file

arj archive files start 0x60, 0xea bytes. read first 2 bytes determine whether file arj archive or not.


Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

ruby - Net::HTTP extremely slow responses for HTTPS requests -