Read a .ods (OpenDoc spreadsheet) zip file from an InputStream, and return the InputStream for content.xml contained inside.
(InputStream input)
| 826 | * return the InputStream for content.xml contained inside. |
| 827 | */ |
| 828 | private InputStream odsFindContentXML(InputStream input) { |
| 829 | ZipInputStream zis = new ZipInputStream(input); |
| 830 | ZipEntry entry = null; |
| 831 | try { |
| 832 | while ((entry = zis.getNextEntry()) != null) { |
| 833 | if (entry.getName().equals("content.xml")) { |
| 834 | return zis; |
| 835 | } |
| 836 | } |
| 837 | } catch (IOException e) { |
| 838 | e.printStackTrace(); |
| 839 | } |
| 840 | return null; |
| 841 | } |
| 842 | |
| 843 | |
| 844 | protected void odsParse(InputStream input, String worksheet, boolean header) { |
no test coverage detected