作者:诺 | 来源:互联网 | 2024-11-10 07:30
本文整理了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();