How to determine if char origin is from keyboard (while reading file content)
===

I'm parsing CSV files, and I might sometime bump into illegal files , like *jpeg* or *pdf* and etc...

So when I parse the file content I want to determine if the char is legal (came from keyboard) like *a 5 & % !* and etc...

But not chars like this  : *�  ַ* and other weird chars that can be found inside *images* *pdfs* and other files

I don't want to check mime type of the file and I prefer not to add several third party jars to solve this problem , I want to figure out that the file that is being parsed is valid by looking into its chars

Is the something similar to `Character.isLetterOrDigit` that can tell if the char is a char that was typed from keyboard or some weird char like *�  ַ*

---
B.t.w in general I'm looking an answer to problem described in this question [CSV file validation with Java][1]


  [1]: http://stackoverflow.com/q/644539/617373