热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

如何使用`org.apache.poi.openxml4j.opc.PackagePart`类中的`loadRelationships()`方法及其代码示例详解

本文整理了Java中org.apache.poi.openxml4j.opc.PackagePart.loadRelationships()方法的一些代码示例,展示了PackagePart.loadR

本文整理了Java中org.apache.poi.openxml4j.opc.PackagePart.loadRelationships()方法的一些代码示例,展示了PackagePart.loadRelationships()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。PackagePart.loadRelationships()方法的具体详情如下:
包路径:org.apache.poi.openxml4j.opc.PackagePart
类名称:PackagePart
方法名:loadRelationships

PackagePart.loadRelationships介绍

[英]Ensure the package relationships collection instance is built.
[中]确保已生成包关系集合实例。

代码示例

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
* Constructor.
*
* @param pack
* Parent package.
* @param partName
* The part name, relative to the parent Package root.
* @param contentType
* The content type.
* @param loadRelationships
* Specify if the relationships will be loaded
* @throws InvalidFormatException
* If the specified URI is not valid.
*/
protected PackagePart(OPCPackage pack, PackagePartName partName,
ContentType contentType, boolean loadRelationships)
throws InvalidFormatException {
_partName = partName;
_cOntentType= contentType;
_cOntainer= pack;
// Check if this part is a relationship part
_isRelatiOnshipPart= this._partName.isRelationshipPartURI();
// Load relationships if any
if (loadRelationships) {
loadRelationships();
}
}

代码示例来源:origin: org.apache.poi/poi-ooxml

part.loadRelationships();

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

/**
* Constructor.
*
* @param pack
* Parent package.
* @param partName
* The part name, relative to the parent Package root.
* @param contentType
* The content type.
* @param loadRelationships
* Specify if the relationships will be loaded
* @throws InvalidFormatException
* If the specified URI is not valid.
*/
protected PackagePart(OPCPackage pack, PackagePartName partName,
ContentType contentType, boolean loadRelationships)
throws InvalidFormatException {
_partName = partName;
_cOntentType= contentType;
_cOntainer= pack;
// Check if this part is a relationship part
_isRelatiOnshipPart= this._partName.isRelationshipPartURI();
// Load relationships if any
if (loadRelationships)
loadRelationships();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
* Constructor.
*
* @param pack
* Parent package.
* @param partName
* The part name, relative to the parent Package root.
* @param contentType
* The content type.
* @param loadRelationships
* Specify if the relationships will be loaded
* @throws InvalidFormatException
* If the specified URI is not valid.
*/
protected PackagePart(OPCPackage pack, PackagePartName partName,
ContentType contentType, boolean loadRelationships)
throws InvalidFormatException {
_partName = partName;
_cOntentType= contentType;
_cOntainer= pack;
// Check if this part is a relationship part
_isRelatiOnshipPart= this._partName.isRelationshipPartURI();
// Load relationships if any
if (loadRelationships) {
loadRelationships();
}
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

part.loadRelationships();

推荐阅读
author-avatar
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有