Percipio is a project mainly written in Java, it's free.
This is yet another file identification tool. Unlike most, it has the ability to refine it's file signatures by scanning known good files.