Class FoloUtils


  • public class FoloUtils
    extends Object
    • Constructor Detail

      • FoloUtils

        public FoloUtils()
    • Method Detail

      • zipTrackedContent

        public static void zipTrackedContent​(File out,
                                             Set<org.commonjava.indy.folo.model.TrackedContent> sealed)
                                      throws IOException
        Write sealed records to a zip file.
        Throws:
        IOException
      • backupTrackedContent

        public static void backupTrackedContent​(File dir,
                                                Set<org.commonjava.indy.folo.model.TrackedContent> sealed)
                                         throws IOException
        Throws:
        IOException
      • readZipInputStreamAnd

        public static int readZipInputStreamAnd​(InputStream inputStream,
                                                java.util.function.Consumer<org.commonjava.indy.folo.model.TrackedContent> consumer)
                                         throws IOException,
                                                ClassNotFoundException
        Read records from input stream and execute consumer function.
        Parameters:
        inputStream -
        consumer -
        Returns:
        count of records read from the stream
        Throws:
        IOException
        ClassNotFoundException