Package org.commonjava.indy.folo
Class FoloUtils
- java.lang.Object
-
- org.commonjava.indy.folo.FoloUtils
-
public class FoloUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description FoloUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbackupTrackedContent(File dir, Set<org.commonjava.indy.folo.model.TrackedContent> sealed)static intreadZipInputStreamAnd(InputStream inputStream, Consumer<org.commonjava.indy.folo.model.TrackedContent> consumer)Read records from input stream and execute consumer function.static InputStreamtoInputStream(org.commonjava.indy.folo.model.TrackedContent f)static voidzipTrackedContent(File out, Set<org.commonjava.indy.folo.model.TrackedContent> sealed)Write sealed records to a zip file.
-
-
-
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, 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:
IOExceptionClassNotFoundException
-
toInputStream
public static InputStream toInputStream(org.commonjava.indy.folo.model.TrackedContent f) throws IOException
- Throws:
IOException
-
-