Class AttachmentHandler

java.lang.Object
org.ofdrw.archive.convert.handler.AttachmentHandler
All Implemented Interfaces:
ArchiveHandler

public class AttachmentHandler extends Object implements ArchiveHandler
处理器:附件处理(GB/T 42133-2022 6.15)

仅保留文本格式附件(TXT/XML);其余移出并保留摘要信息。

Since:
2.4.0
Author:
权观宇
  • Constructor Details

    • AttachmentHandler

      public AttachmentHandler()
  • Method Details

    • handle

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

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

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