- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.poi.openxml4j.opc.internal.marshallers.ZipPartMarshaller.marshallRelationshipPart()
方法的一些代码示例,展示了ZipPartMarshaller.marshallRelationshipPart()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipPartMarshaller.marshallRelationshipPart()
方法的具体详情如下:
包路径:org.apache.poi.openxml4j.opc.internal.marshallers.ZipPartMarshaller
类名称:ZipPartMarshaller
方法名:marshallRelationshipPart
[英]Save relationships into the part.
[中]将关系保存到零件中。
代码示例来源:origin: org.apache.poi/poi-ooxml
.getRelationshipPartName(part.getPartName());
marshallRelationshipPart(part.getRelationships(),
relationshipPartName, zos);
代码示例来源:origin: org.apache.poi/poi-ooxml
ZipPartMarshaller.marshallRelationshipPart(this.getRelationships(),
PackagingURIHelper.PACKAGE_RELATIONSHIPS_ROOT_PART_NAME,
zos);
代码示例来源:origin: jbaliuka/x4j-analytic
private void marshalRelationship(ZipOutputStream out) {
ZipPartMarshaller.marshallRelationshipPart(
pack.getRelationships(),
PackagingURIHelper.PACKAGE_RELATIONSHIPS_ROOT_PART_NAME,
out
);
}
代码示例来源:origin: jbaliuka/x4j-analytic
private void saveWorkBook(List<String> savedParts, XSSFWorkbook workBook, ZipOutputStream out) throws IOException, OpenXML4JException {
removePrintAreas(workBook);
PackagePart part = workBook.getPackagePart();
String entryName = getEntryName(part);
WorkbookDocument doc = WorkbookDocument.Factory.newInstance();
doc.setWorkbook(workBook.getCTWorkbook());
out.putNextEntry(new ZipEntry(entryName));
doc.save(out, POIXMLDocumentPart.DEFAULT_XML_OPTIONS);
out.closeEntry();
savedParts.add(entryName);
// Saving relationship part
if (part.hasRelationships()) {
PackagePartName relationshipPartName = PackagingURIHelper
.getRelationshipPartName(part.getPartName());
ZipPartMarshaller.marshallRelationshipPart(part.getRelationships(),
relationshipPartName, out);
savedParts.add(getEntryName(part));
}
}
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
.getRelationshipPartName(part.getPartName());
marshallRelationshipPart(part.getRelationships(),
relationshipPartName, zos);
代码示例来源:origin: jbaliuka/x4j-analytic
public void processSheets( ReportContext reportContext, List<String> savedParts, ZipContentTypeManager manager )
throws Exception {
for(int i = 0; i < workBook.getNumberOfSheets(); i++){
XLSXSheet sheet = (XLSXSheet) nextSheet(reportContext, savedParts, i);
CommentsTable comments = sheet.getCommentsTable(false);
if(comments != null){
String entryName = ZipHelper.getZipItemNameFromOPCName(comments.getPackagePart().getPartName().getName());
savedParts.add(entryName);
out.putNextEntry(new ZipEntry(entryName));
comments.writeTo(out);
out.closeEntry();
}
if (sheet.getPackagePart().hasRelationships()) {
PackagePartName relationshipPartName = PackagingURIHelper
.getRelationshipPartName(sheet.getPackagePart().getPartName());
ZipPartMarshaller.marshallRelationshipPart(sheet.getPackagePart().getRelationships(),
relationshipPartName, out);
savedParts.add(relationshipPartName.getName());
for (PackageRelationship next : sheet.getPackagePart().getRelationships()) {
PackagePartName name = PackagingURIHelper.createPartName(next.getTargetURI());
XSSFRelation type = XSSFRelation.getInstance(next.getRelationshipType());
if (type != null) {
manager.addContentType(name, type.getContentType());
}
}
}
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
.getRelationshipPartName(part.getPartName());
marshallRelationshipPart(part.getRelationships(),
relationshipPartName, zos);
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
ZipPartMarshaller.marshallRelationshipPart(this.getRelationships(),
PackagingURIHelper.PACKAGE_RELATIONSHIPS_ROOT_PART_NAME,
zos);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
ZipPartMarshaller.marshallRelationshipPart(this.getRelationships(),
PackagingURIHelper.PACKAGE_RELATIONSHIPS_ROOT_PART_NAME,
zos);
本文整理了Java中org.apache.poi.openxml4j.opc.internal.marshallers.ZipPartMarshaller.marshallRelationshipPa
我是一名优秀的程序员,十分优秀!