MCPcopy Index your code
hub / github.com/processing/processing / odsFindContentXML

Method odsFindContentXML

core/src/processing/data/Table.java:828–841  ·  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

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

Callers 1

odsParseMethod · 0.95

Calls 3

equalsMethod · 0.45
getNameMethod · 0.45
printStackTraceMethod · 0.45

Tested by

no test coverage detected