<property name="ooxml.jar5.dir" location="${ooxml.lib}/jsr173_1.0_api.jar"/>
<property name="ooxml.jar5.url" value="${repository}/xmlbeans/jars/jsr173_1.0_api.jar"/>
<!-- No official release of openxml4j yet -->
- <property name="ooxml.jar6.dir" location="${ooxml.lib}/openxml4j-bin-alpha-080321.jar"/>
- <property name="ooxml.jar6.url" value="http://people.apache.org/~nick/openxml4j-bin-alpha-080321.jar"/>
+ <property name="ooxml.jar6.dir" location="${ooxml.lib}/openxml4j-bin-alpha-080322.jar"/>
+ <property name="ooxml.jar6.url" value="http://people.apache.org/~nick/openxml4j-bin-alpha-080322.jar"/>
<!-- See http://www.ecma-international.org/publications/standards/Ecma-376.htm -->
<!-- "Copy these file(s), free of charge" -->
}
/**
- * TODO - fix openxml4j to support input stream
+ * Creates the appropriate kind of Workbook, but
+ * checking the mime magic at the start of the
+ * InputStream, then creating what's required.
*/
- public void DISABLEDtestCreateGeneric() throws Exception {
+ public void testCreateGeneric() throws Exception {
Workbook wb;
// InputStream -> either
new FileInputStream(xlsx)
);
assertNotNull(wb);
- assertTrue(wb instanceof HSSFWorkbook);
+ assertTrue(wb instanceof XSSFWorkbook);
try {
wb = WorkbookFactory.create(