Read a .ods (OpenDoc spreadsheet) zip file from an InputStream, and return the InputStream for content.xml contained inside.
(InputStream input)
| 840 | * return the InputStream for content.xml contained inside. |
| 841 | */ |
| 842 | private InputStream odsFindContentXML(InputStream input) { |
| 843 | ZipInputStream zis = new ZipInputStream(input); |
| 844 | ZipEntry entry = null; |
| 845 | try { |
| 846 | while ((entry = zis.getNextEntry()) != null) { |
| 847 | if (entry.getName().equals("content.xml")) { |
| 848 | return zis; |
| 849 | } |
| 850 | } |
| 851 | } catch (IOException e) { |
| 852 | e.printStackTrace(); |
| 853 | } |
| 854 | return null; |
| 855 | } |
| 856 | |
| 857 | |
| 858 | protected void odsParse(InputStream input, String worksheet, boolean header) { |
no test coverage detected