ARK-Builders / ARK-Navigator

Android app for navigation through your data
MIT License
15 stars 15 forks source link

Plain text files can be detected not only by filename #265

Closed kirillt closed 2 years ago

kirillt commented 2 years ago

We can use something like https://tika.apache.org/ or plain attempt to read bytes as UTF-8 in order to count resource as "plain text". The most correct way to do it seems to be overriding ResourceKindFactory.isValid in PlainTextKindFactory class.