public class ZipContentTypeManager extends ContentTypeManager
ContentTypeManager
container, CONTENT_TYPES_PART_NAME, TYPES_NAMESPACE_URI
Constructor and Description |
---|
ZipContentTypeManager(java.io.InputStream in,
OPCPackage pkg)
Delegate constructor to the super constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
saveImpl(org.w3c.dom.Document content,
java.io.OutputStream out)
Specific implementation of the save method.
|
addContentType, clearAll, clearOverrideContentTypes, getContentType, isContentTypeRegister, removeContentType, save
public ZipContentTypeManager(java.io.InputStream in, OPCPackage pkg) throws InvalidFormatException
in
- The input stream to parse to fill internal content type
collections.InvalidFormatException
- If the content types part content is not valid.public boolean saveImpl(org.w3c.dom.Document content, java.io.OutputStream out)
ContentTypeManager
saveImpl
in class ContentTypeManager
out
- The output stream use to write the content type XML.Copyright 2021 The Apache Software Foundation or its licensors, as applicable.