开发者

How to determine the format of Excel file in Java?

开发者 https://www.devze.com 2022-12-24 18:55 出处:网络
I am开发者_开发百科 working on a light weight Java client library for Android mobile platform that can read and write to Excel files in .xls(BIFF) and Office 2003 XML format.

I am开发者_开发百科 working on a light weight Java client library for Android mobile platform that can read and write to Excel files in .xls(BIFF) and Office 2003 XML format.

No sooner we decided to start than we got stuck with a basic question. How do we determine the format of the excel files in Java?


I guess I would just parse the file using an XML parser and if I dont get an Exception I will infer that it is an XML.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号