Hi,
 I have an InputStream wrapped in a BufferedInputStream and I'm trying to
detect whether it is a normal zip file or a xlsx file (and take appropriate
actions accordingly). I have tried to use  hasOOXMLHeader
<https://github.com/apache/poi/blob/trunk/src/java/org/apache/poi/poifs/filesystem/DocumentFactoryHelper.java#L91>
  
to achieve this. But it just checks if the input stream is a zip file and
there is nothing specific for an xlsx file there. (I understand that xlsx is
a zip file with a bunch of xml files).

Is it possible to detect if the inputstream is from xlsx file or a normal
zip file?

Regards,
B.Thiyagarajan



--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Apache-POI-Detecting-difference-between-an-xlsx-file-and-a-normal-zip-file-tp5727035.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
For additional commands, e-mail: user-h...@poi.apache.org

Reply via email to