/** * Returns an InputStream to read the contents of the * shared strings table. */ public InputStream getSharedStringsData() throws IOException, InvalidFormatException { return XSSFRelation.SHARED_STRINGS.getContents(workbookPart); }
/** * Returns an InputStream to read the contents of the * styles table. */ public InputStream getStylesData() throws IOException, InvalidFormatException { return XSSFRelation.STYLES.getContents(workbookPart); }
/** * Returns an InputStream to read the contents of the * themes table. */ public InputStream getThemesData() throws IOException, InvalidFormatException { return XSSFRelation.THEME.getContents(workbookPart); }
/** * Adds a vbaProject.bin file taken from another, given workbook to this one. * @throws IOException If copying the VBAProject stream fails. * @throws InvalidFormatException If an error occurs while handling parts of the XSSF format */ public void setVBAProject(XSSFWorkbook macroWorkbook) throws IOException, InvalidFormatException { if (!macroWorkbook.isMacroEnabled()) { return; } InputStream vbaProjectStream = XSSFRelation.VBA_MACROS.getContents(macroWorkbook.getCorePart()); if (vbaProjectStream != null) { setVBAProject(vbaProjectStream); } }
/** * Returns an InputStream to read the contents of the * shared strings table. */ public InputStream getSharedStringsData() throws IOException, InvalidFormatException { return XSSFRelation.SHARED_STRINGS.getContents(workbookPart); }
/** * Returns an InputStream to read the contents of the * shared strings table. */ public InputStream getSharedStringsData() throws IOException, InvalidFormatException { return XSSFRelation.SHARED_STRINGS.getContents(workbookPart); }
/** * Returns an InputStream to read the contents of the * styles table. */ public InputStream getStylesData() throws IOException, InvalidFormatException { return XSSFRelation.STYLES.getContents(workbookPart); }
/** * Returns an InputStream to read the contents of the * styles table. */ public InputStream getStylesData() throws IOException, InvalidFormatException { return XSSFRelation.STYLES.getContents(workbookPart); }
/** * Returns an InputStream to read the contents of the * themes table. */ public InputStream getThemesData() throws IOException, InvalidFormatException { return XSSFRelation.THEME.getContents(workbookPart); }
/** * Returns an InputStream to read the contents of the * themes table. */ public InputStream getThemesData() throws IOException, InvalidFormatException { return XSSFRelation.THEME.getContents(workbookPart); }
/** * Adds a vbaProject.bin file taken from another, given workbook to this one. * @throws IOException If copying the VBAProject stream fails. * @throws InvalidFormatException If an error occurs while handling parts of the XSSF format */ public void setVBAProject(XSSFWorkbook macroWorkbook) throws IOException, InvalidFormatException { if (!macroWorkbook.isMacroEnabled()) { return; } InputStream vbaProjectStream = XSSFRelation.VBA_MACROS.getContents(macroWorkbook.getCorePart()); if (vbaProjectStream != null) { setVBAProject(vbaProjectStream); } }