public class FoloUtils extends Object
| Constructor and Description |
|---|
FoloUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
backupTrackedContent(File dir,
Set<org.commonjava.indy.folo.model.TrackedContent> sealed) |
static int |
readZipInputStreamAnd(InputStream inputStream,
java.util.function.Consumer<org.commonjava.indy.folo.model.TrackedContent> consumer)
Read records from input stream and execute consumer function.
|
static InputStream |
toInputStream(org.commonjava.indy.folo.model.TrackedContent f) |
static void |
zipTrackedContent(File out,
Set<org.commonjava.indy.folo.model.TrackedContent> sealed)
Write sealed records to a zip file.
|
public static void zipTrackedContent(File out, Set<org.commonjava.indy.folo.model.TrackedContent> sealed) throws IOException
IOExceptionpublic static void backupTrackedContent(File dir, Set<org.commonjava.indy.folo.model.TrackedContent> sealed) throws IOException
IOExceptionpublic static int readZipInputStreamAnd(InputStream inputStream, java.util.function.Consumer<org.commonjava.indy.folo.model.TrackedContent> consumer) throws IOException, ClassNotFoundException
inputStream - consumer - IOExceptionClassNotFoundExceptionpublic static InputStream toInputStream(org.commonjava.indy.folo.model.TrackedContent f) throws IOException
IOExceptionCopyright © 2011-2018-2018. All Rights Reserved.