本文整理了Java中org.apache.poi.xssf.usermodel.XSSFRelation.getContents()
方法的一些代码示例,展示了XSSFRelation.getContents()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSFRelation.getContents()
方法的具体详情如下:
包路径:org.apache.poi.xssf.usermodel.XSSFRelation
类名称:XSSFRelation
方法名:getContents
[英]Fetches the InputStream to read the contents, based of the specified core part, for which we are defined as a suitable relationship
[中]获取InputStream以读取基于指定核心部分的内容,我们将其定义为合适的关系
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Returns an InputStream to read the contents of the
* shared strings table.
*/
public InputStream getSharedStringsData() throws IOException, InvalidFormatException {
return XSSFRelation.SHARED_STRINGS.getContents(workbookPart);
}
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Returns an InputStream to read the contents of the
* styles table.
*/
public InputStream getStylesData() throws IOException, InvalidFormatException {
return XSSFRelation.STYLES.getContents(workbookPart);
}
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Returns an InputStream to read the contents of the
* themes table.
*/
public InputStream getThemesData() throws IOException, InvalidFormatException {
return XSSFRelation.THEME.getContents(workbookPart);
}
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* 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);
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Returns an InputStream to read the contents of the
* shared strings table.
*/
public InputStream getSharedStringsData() throws IOException, InvalidFormatException {
return XSSFRelation.SHARED_STRINGS.getContents(workbookPart);
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
/**
* Returns an InputStream to read the contents of the
* shared strings table.
*/
public InputStream getSharedStringsData() throws IOException, InvalidFormatException {
return XSSFRelation.SHARED_STRINGS.getContents(workbookPart);
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
/**
* Returns an InputStream to read the contents of the
* styles table.
*/
public InputStream getStylesData() throws IOException, InvalidFormatException {
return XSSFRelation.STYLES.getContents(workbookPart);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Returns an InputStream to read the contents of the
* styles table.
*/
public InputStream getStylesData() throws IOException, InvalidFormatException {
return XSSFRelation.STYLES.getContents(workbookPart);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Returns an InputStream to read the contents of the
* themes table.
*/
public InputStream getThemesData() throws IOException, InvalidFormatException {
return XSSFRelation.THEME.getContents(workbookPart);
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
/**
* Returns an InputStream to read the contents of the
* themes table.
*/
public InputStream getThemesData() throws IOException, InvalidFormatException {
return XSSFRelation.THEME.getContents(workbookPart);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* 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);
}
}
内容来源于网络,如有侵权,请联系作者删除!