ContentTypesManager

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.opc is not part of the public API and may change without notice. This page is provided for reference only.


Methods

MethodReturnsDescription
addDefaultExtension(String extension, String contentType)voidAdds a default content type mapping for a file extension.
addOverride(String partName, String contentType)voidAdds or updates a content type override for a specific part.
removeOverride(String partName)booleanRemoves a content type override for a specific part.
getContentType(String partName)Optional<String>Gets the content type for a specific part.
save()voidSaves the content types back to the package.

See Also