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.
(save方法的具体实现。)
|
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.
(in - 要解析以填充内部内容类型集合的输入流。)
InvalidFormatException
- If the content types part content is not valid.
(InvalidFormatException - 如果内容类型部分内容无效。)
public boolean saveImpl(org.w3c.dom.Document content, java.io.OutputStream out)
ContentTypeManager
saveImpl
in class
ContentTypeManager
(类 ContentTypeManager 中的 saveImpl)
out
- The output stream use to write the content type XML.
(out - 用于写入内容类型 XML 的输出流。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.