My problem is, that I want to parse binary files of different types with a generic parser which is implemented in JAVA. Maybe describing the file format with a configuration
Have you looking into the world of parsers. A good parser is yacc, and there may be a port of it for java.