ContentTypesManager — Aspose.Slides FOSS Java API Reference
ContentTypesManager — Manages the [Content_Types].
Package: org.aspose.slides.foss.internal.opc
Note: This is an internal implementation class. Do not import or use it directly — the package
org.aspose.slides.foss.internal.opcis not part of the public API and may change without notice. This page is provided for reference only.
Methods
| Method | Returns | Description |
|---|---|---|
addDefaultExtension(String extension, String contentType) | void | Adds a default content type mapping for a file extension. |
addOverride(String partName, String contentType) | void | Adds or updates a content type override for a specific part. |
removeOverride(String partName) | boolean | Removes a content type override for a specific part. |
getContentType(String partName) | Optional<String> | Gets the content type for a specific part. |
save() | void | Saves the content types back to the package. |