Modifier and Type | Field and Description |
---|---|
protected PackagePartName |
PackagePart._partName
The part name.
|
static PackagePartName |
PackagingURIHelper.CORE_PROPERTIES_PART_NAME
Core properties partname.
|
static PackagePartName |
PackagingURIHelper.PACKAGE_RELATIONSHIPS_ROOT_PART_NAME
Package relationships part name.
|
static PackagePartName |
PackagingURIHelper.PACKAGE_ROOT_PART_NAME
Root package part name.
|
Modifier and Type | Method and Description |
---|---|
static PackagePartName |
PackagingURIHelper.createPartName(String partName)
Create an OPC compliant part name.
|
static PackagePartName |
PackagingURIHelper.createPartName(String partName,
PackagePart relativePart)
Create an OPC compliant part name by resolving it using a base part.
|
static PackagePartName |
PackagingURIHelper.createPartName(URI partUri)
Create an OPC compliant part name by throwing an exception if the URI is
not valid.
|
static PackagePartName |
PackagingURIHelper.createPartName(URI partName,
PackagePart relativePart)
Create an OPC compliant part name by resolving it using a base part.
|
PackagePartName |
PackagePart.getPartName() |
static PackagePartName |
PackagingURIHelper.getRelationshipPartName(PackagePartName partName)
Build a part name where the relationship should be stored ((ex
/word/document.xml -> /word/_rels/document.xml.rels)
|
Modifier and Type | Method and Description |
---|---|
PackageRelationship |
RelationshipSource.addRelationship(PackagePartName targetPartName,
TargetMode targetMode,
String relationshipType)
Add a relationship to a part (except relationships part).
|
PackageRelationship |
PackagePart.addRelationship(PackagePartName targetPartName,
TargetMode targetMode,
String relationshipType)
Add a relationship to a part (except relationships part).
|
PackageRelationship |
OPCPackage.addRelationship(PackagePartName targetPartName,
TargetMode targetMode,
String relationshipType)
Add a package relationship.
|
PackageRelationship |
RelationshipSource.addRelationship(PackagePartName targetPartName,
TargetMode targetMode,
String relationshipType,
String id)
Add a relationship to a part (except relationships part).
|
PackageRelationship |
PackagePart.addRelationship(PackagePartName targetPartName,
TargetMode targetMode,
String relationshipType,
String id)
Add a relationship to a part (except relationships part).
|
PackageRelationship |
OPCPackage.addRelationship(PackagePartName targetPartName,
TargetMode targetMode,
String relationshipType,
String relID)
Add a relationship to the package (except relationships part).
|
int |
PackagePartName.compareTo(PackagePartName otherPartName)
Compare two part name following the rule M1.12 :
Part name equivalence is determined by comparing part names as
case-insensitive ASCII strings.
|
boolean |
OPCPackage.containPart(PackagePartName partName)
Check if a part already exists in this package from its name.
|
PackagePart |
OPCPackage.createPart(PackagePartName partName,
String contentType)
Create and add a part, with the specified name and content type, to the
package.
|
PackagePart |
OPCPackage.createPart(PackagePartName partName,
String contentType,
ByteArrayOutputStream content)
Add a part to the package.
|
protected PackagePart |
ZipPackage.createPartImpl(PackagePartName partName,
String contentType,
boolean loadRelationships)
Create a new MemoryPackagePart from the specified URI and content type
aram partName The part URI.
|
protected abstract PackagePart |
OPCPackage.createPartImpl(PackagePartName partName,
String contentType,
boolean loadRelationships)
Core method to create a package part.
|
void |
OPCPackage.deletePart(PackagePartName partName)
Delete the part with the specified name and its associated relationships
part if one exists.
|
void |
OPCPackage.deletePartRecursive(PackagePartName partName)
Delete the part with the specified name and all part listed in its
associated relationships part if one exists.
|
PackagePart |
OPCPackage.getPart(PackagePartName partName)
Retrieve a part identified by its name.
|
protected PackagePart |
ZipPackage.getPartImpl(PackagePartName partName)
Implement the getPart() method to retrieve a part from its URI in the
current package
|
protected abstract PackagePart |
OPCPackage.getPartImpl(PackagePartName partName)
Get the package part mapped to the specified URI.
|
static PackagePartName |
PackagingURIHelper.getRelationshipPartName(PackagePartName partName)
Build a part name where the relationship should be stored ((ex
/word/document.xml -> /word/_rels/document.xml.rels)
|
PackagePart |
PackagePartCollection.put(PackagePartName partName,
PackagePart part)
Check rule [M1.11]: a package implementer shall neither create nor
recognize a part with a part name derived from another part name by
appending segments to it.
|
void |
OPCPackage.removePart(PackagePartName partName)
Remove a part in this package.
|
protected void |
ZipPackage.removePartImpl(PackagePartName partName)
Delete a part from the package
|
protected abstract void |
OPCPackage.removePartImpl(PackagePartName partName)
Core method to delete a package part.
|
void |
OPCPackage.removePartRecursive(PackagePartName partName)
Remove a part from this package as well as its relationship part, if one
exists, and all parts listed in the relationship part.
|
Constructor and Description |
---|
PackagePart(OPCPackage pack,
PackagePartName partName,
ContentType contentType)
Constructor.
|
PackagePart(OPCPackage pack,
PackagePartName partName,
ContentType contentType,
boolean loadRelationships)
Constructor.
|
PackagePart(OPCPackage pack,
PackagePartName partName,
String contentType)
Constructor.
|
ZipPackagePart(OPCPackage container,
PackagePartName partName,
String contentType)
Constructor.
|
ZipPackagePart(OPCPackage container,
ZipEntry zipEntry,
PackagePartName partName,
String contentType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
ContentTypeManager.addContentType(PackagePartName partName,
String contentType)
Build association extention-> content type (will be stored in
[Content_Types].xml) for example ContentType="image/png" Extension="png"
|
String |
ContentTypeManager.getContentType(PackagePartName partName)
Get the content type for the specified part, if any.
|
void |
ContentTypeManager.removeContentType(PackagePartName partName)
Delete a content type based on the specified part name.
|
Constructor and Description |
---|
MemoryPackagePart(OPCPackage pack,
PackagePartName partName,
String contentType)
Constructor.
|
MemoryPackagePart(OPCPackage pack,
PackagePartName partName,
String contentType,
boolean loadRelationships)
Constructor.
|
PackagePropertiesPart(OPCPackage pack,
PackagePartName partName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
ZipPartMarshaller.marshallRelationshipPart(PackageRelationshipCollection rels,
PackagePartName relPartName,
ZipOutputStream zos)
Save relationships into the part.
|
Modifier and Type | Method and Description |
---|---|
void |
UnmarshallContext.setPartName(PackagePartName partName) |
Constructor and Description |
---|
UnmarshallContext(OPCPackage targetPackage,
PackagePartName partName)
Constructor.
|
Copyright © 2020. All rights reserved.