---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/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.

---

## Properties

| Property | Type | Access | Description |
|----------|------|--------|-------------|
| `CONTENT_TYPES` | `Map` | Read | |
| `CT_NAMESPACE` | `String` | Read | |
| `CT_NS` | `String` | Read | |

## 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` | Gets the content type for a specific part. |
| `save()` | `void` | Saves the content types back to the package. |

---

## See Also

- [Aspose.Slides FOSS Java API Reference home](/slides/java/)
- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)