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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -