public final class FSQueueUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Stream<Path> |
findZipFiles(Path dir)
Finds all files with the ".zip" extension from within a given
directory, recursively.
|
static ICommitterRequest |
fromZipFile(Path sourceFile) |
static ICommitterRequest |
fromZipFile(Path sourceFile,
CachedStreamFactory streamFactory) |
static boolean |
isEmpty(Path dir)
Recursively gets whether a queue directory is empty of
queue files.
|
static void |
toZipFile(ICommitterRequest request,
Path targetFile) |
public static boolean isEmpty(Path dir) throws IOException
dir
- directory to start lookingtrue
if emptyIOException
- if an I/O error occurspublic static Stream<Path> findZipFiles(Path dir) throws IOException
dir
- directory to start lookingIOException
- problem occurred searching for files.public static void toZipFile(ICommitterRequest request, Path targetFile) throws IOException
IOException
public static ICommitterRequest fromZipFile(Path sourceFile) throws IOException
IOException
public static ICommitterRequest fromZipFile(Path sourceFile, CachedStreamFactory streamFactory) throws IOException
IOException
Copyright © 2009–2022 Norconex Inc.. All rights reserved.