Class ZipContentTypeManager
- java.lang.Object
-
- org.apache.poi.openxml4j.opc.internal.ContentTypeManager
-
- org.apache.poi.openxml4j.opc.internal.ZipContentTypeManager
-
public class ZipContentTypeManager extends ContentTypeManager
Zip implementation of the ContentTypeManager.- See Also:
ContentTypeManager
-
-
Field Summary
-
Fields inherited from class org.apache.poi.openxml4j.opc.internal.ContentTypeManager
CONTENT_TYPES_PART_NAME, TYPES_NAMESPACE_URI
-
-
Constructor Summary
Constructors Constructor Description ZipContentTypeManager(InputStream in, OPCPackage pkg)Delegate constructor to the super constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleansaveImpl(Document content, OutputStream out)Specific implementation of the save method.-
Methods inherited from class org.apache.poi.openxml4j.opc.internal.ContentTypeManager
addContentType, clearAll, clearOverrideContentTypes, getContentType, isContentTypeRegister, removeContentType, save
-
-
-
-
Constructor Detail
-
ZipContentTypeManager
public ZipContentTypeManager(InputStream in, OPCPackage pkg) throws InvalidFormatException
Delegate constructor to the super constructor.- Parameters:
in- The input stream to parse to fill internal content type collections.- Throws:
InvalidFormatException- If the content types part content is not valid.
-
-
Method Detail
-
saveImpl
public boolean saveImpl(Document content, OutputStream out)
Description copied from class:ContentTypeManagerSpecific implementation of the save method. Call by the save() method, call before exiting.- Specified by:
saveImplin classContentTypeManagerout- The output stream use to write the content type XML.
-
-