Class OneNoteGuidCollector

java.lang.Object
org.apache.tika.parser.microsoft.onenote.OneNoteGuidCollector

public final class OneNoteGuidCollector extends Object
Collects the GUID metadata of one OneNote section for the classic and FSSHTTPB parsers. Values are deduplicated per key and capped at MAX_GUID_COUNT in total.
  • Field Details

  • Constructor Details

    • OneNoteGuidCollector

      public OneNoteGuidCollector(Consumer<String> warningHandler)
  • Method Details

    • add

      public void add(OneNoteGuidCollector.Category category, String guid)
    • addForObjectType

      public void addForObjectType(int jcid, String guid)
      Records a NotebookManagementEntityGuid under the key for the JCID of the object that carries it. Section-node objects and unrecognized JCIDs are skipped.
    • values

      public Set<String> values(OneNoteGuidCollector.Category category)
    • isFull

      public boolean isFull()
    • publish

      public void publish(Metadata metadata)
      Sets each non-empty key on metadata, with values sorted.