public class GarbageCollectorFileState extends Object implements Closeable
| Constructor and Description |
|---|
GarbageCollectorFileState(String root)
Instantiates a new garbage collector file state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Completes the process by deleting the files.
|
static File |
copy(InputStream stream) |
File |
getAvailableRefs()
Gets the file storing the available references.
|
File |
getGarbage()
Gets the storing the garbage.
|
File |
getGcCandidates()
Gets the file storing the gc candidates.
|
File |
getMarkedRefs()
Gets the file storing the marked references.
|
static void |
merge(List<File> files,
File output) |
static void |
sort(File file)
Sorts the given file externally.
|
static void |
sort(File file,
Comparator<String> comparator)
Sorts the given file externally with the given comparator.
|
public GarbageCollectorFileState(String root) throws IOException
root - path of the root directory under which the
files created during gc are storedIOExceptionpublic File getMarkedRefs()
public File getAvailableRefs()
public File getGcCandidates()
public File getGarbage()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException - Signals that an I/O exception has occurred.public static void sort(File file) throws IOException
file - file whose contents needs to be sortedIOExceptionpublic static void sort(File file, Comparator<String> comparator) throws IOException
file - file whose contents needs to be sortedcomparator - to compareIOExceptionpublic static void merge(List<File> files, File output) throws IOException
IOExceptionpublic static File copy(InputStream stream) throws IOException
IOException"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"