@Test void ExcelWriterFileFormat_XLSX() throws IOException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); new ExcelWriter(bos, attrMetaFactory, FileFormat.XLSX).close(); byte[] b = bos.toByteArray(); assertEquals(0x50, b[0] & 0xff); assertEquals(0x4B, b[1] & 0xff); assertEquals(0x03, b[2] & 0xff); assertEquals(0x04, b[3] & 0xff); }
@Override public void close() throws IOException { try { workbook.write(os); } catch (IOException e) { throw new MolgenisDataException("Exception writing to excel file", e); } os.close(); }
ExcelWriter implements WritableFactory { @Override public void close() throws IOException { try { workbook.write(os); } catch (IOException e) { throw new MolgenisDataException("Exception writing to excel file", e); } os.close(); } }
ExcelWriter implements WritableFactory { @Override public void close() throws IOException { try { workbook.write(os); } catch (IOException e) { throw new MolgenisDataException("Exception writing to excel file", e); } os.close(); } ExcelWriter(OutputStream os, AttributeFactory attrMetaFactory);  ExcelWriter(OutputStream os, AttributeFactory attrMetaFactory, FileFormat format); }
ExcelWriter implements WritableFactory { @Override public void close() throws IOException { try { workbook.write(os); } catch (IOException e) { throw new MolgenisDataException("Exception writing to excel file", e); } os.close(); } ExcelWriter(OutputStream os, AttributeFactory attrMetaFactory);  ExcelWriter(OutputStream os, AttributeFactory attrMetaFactory, FileFormat format); void addCellProcessor(CellProcessor cellProcessor); @Override ExcelSheetWriter createWritable(
      String entityTypeId, Iterable<Attribute> attributes, AttributeWriteMode attributeWriteMode); @Override void close(); @Override ExcelSheetWriter createWritable(String entityTypeId, List<String> attributeNames); }
ExcelWriter implements WritableFactory { @Override public void close() throws IOException { try { workbook.write(os); } catch (IOException e) { throw new MolgenisDataException("Exception writing to excel file", e); } os.close(); } ExcelWriter(OutputStream os, AttributeFactory attrMetaFactory);  ExcelWriter(OutputStream os, AttributeFactory attrMetaFactory, FileFormat format); void addCellProcessor(CellProcessor cellProcessor); @Override ExcelSheetWriter createWritable(
      String entityTypeId, Iterable<Attribute> attributes, AttributeWriteMode attributeWriteMode); @Override void close(); @Override ExcelSheetWriter createWritable(String entityTypeId, List<String> attributeNames);  }