gpt4 book ai didi

org.apache.poi.openxml4j.opc.internal.marshallers.ZipPartMarshaller.marshallRelationshipPart()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 19:05:31 29 4
gpt4 key购买 nike

本文整理了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

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);

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com