title: how to know whether a file is .docx or .doc format from Apache POI
body: <p>I know we can get it done by extension or by mime type, do we have any other way through which we can get the idea of type of file whether it is .docx or .doc. </p>