Interface ArchiveHandler

All Known Implementing Classes:
AnnotationHandler, AttachmentHandler, AudioVideoHandler, CleanFillAttrHandler, CleanStrokeAttrHandler, ClipAreaHandler, DocTypeHandler, EncryptionHandler, ExtensionHandler, ExternalResourceHandler, ImageConvertHandler, ImageExtensionHandler, ImageInterpolateHandler, ImageResourceRegHandler, LayerNameHandler, NonGotoActionHandler, OutlineActionHandler, PageBlockFlattenHandler, PermissionHandler, ResourcePlacementHandler, SignatureHandler, SingleDocHandler, VPrefsHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ArchiveHandler
OFD-A 转换处理器

每个处理器执行一个具体的"去技术化"操作,就地修改 OFDDir 虚拟容器中的文件。 处理器按编排顺序依次执行(如先解密后改 DocType)。 处理器实现应为无状态,允许多次调用。

实现类命名格式: XxxHandler,与对应的检查规则(XxxRule)对应。

Since:
2.4.0
Author:
权观宇
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(OFDReader reader, org.ofdrw.pkg.container.OFDDir ofdDir)
    执行去技术化转换操作,就地修改 OFD 容器
  • Method Details

    • handle

      void handle(OFDReader reader, org.ofdrw.pkg.container.OFDDir ofdDir) throws IOException
      执行去技术化转换操作,就地修改 OFD 容器

      处理结果直接写入 ofdDir,调用者负责最终持久化和打包。

      Parameters:
      reader - OFD 阅读器,提供文档结构访问
      ofdDir - OFD 虚拟容器,修改结果写入此处
      Throws:
      IOException - 文件操作异常