Class TOCComponent


  • public class TOCComponent
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TOCComponent()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void appendTOC​(Descriptor descriptor, java.util.Collection<Component> components)
      Appends new component names to the TOC component.
      static java.util.Set<Component> loadOrCreate​(Descriptor descriptor)  
      static java.util.Set<Component> loadTOC​(Descriptor descriptor)
      Reads the list of components from the TOC component.
      static java.util.Set<Component> loadTOC​(Descriptor descriptor, boolean skipMissing)
      Reads the list of components from the TOC component.
      static void rewriteTOC​(Descriptor descriptor, java.util.Collection<Component> components)
      Rewrite TOC components by deleting existing TOC file and append new components
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TOCComponent

        public TOCComponent()
    • Method Detail

      • loadTOC

        public static java.util.Set<Component> loadTOC​(Descriptor descriptor)
                                                throws java.io.IOException
        Reads the list of components from the TOC component.
        Returns:
        set of components found in the TOC
        Throws:
        java.io.IOException
      • loadTOC

        public static java.util.Set<Component> loadTOC​(Descriptor descriptor,
                                                       boolean skipMissing)
                                                throws java.io.IOException
        Reads the list of components from the TOC component.
        Parameters:
        skipMissing - skip adding the component to the returned set if the corresponding file is missing.
        Returns:
        set of components found in the TOC
        Throws:
        java.io.IOException
      • appendTOC

        public static void appendTOC​(Descriptor descriptor,
                                     java.util.Collection<Component> components)
        Appends new component names to the TOC component.
      • loadOrCreate

        public static java.util.Set<Component> loadOrCreate​(Descriptor descriptor)
      • rewriteTOC

        public static void rewriteTOC​(Descriptor descriptor,
                                      java.util.Collection<Component> components)
        Rewrite TOC components by deleting existing TOC file and append new components