MCPcopy Index your code
hub / github.com/benfry/processing4 / odsFindContentXML

Method odsFindContentXML

core/src/processing/data/Table.java:842–855  ·  view source on GitHub ↗

Read a .ods (OpenDoc spreadsheet) zip file from an InputStream, and return the InputStream for content.xml contained inside.

(InputStream input)

Source from the content-addressed store, hash-verified

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) {

Callers 1

odsParseMethod · 0.95

Calls 3

equalsMethod · 0.45
getNameMethod · 0.45
printStackTraceMethod · 0.45

Tested by

no test coverage detected