public class GCHelper extends Object
ResultSet
chain and for retrieving properties that are interesting to the GarbageCollect| Constructor and Description |
|---|
GCHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
alreadyChecked(String filename,
MessageDigest algorithm,
Set<String> checked)
Checks if a file has already been checked for deletion either it sel or as part of a travered chain
and if it hasn't makes it us checked
|
static String |
goToHead(String filename,
GCProperties props)
Goes to the head part of the
ResultSet whose
member is the part that is stored in the provided filename and populates the properties |
static String |
goToLast(String filename,
GCProperties props)
Goes to the last part of the
ResultSet whose
member is the part that is stored in the provided filename and populates the properties |
static void |
headPoperties(String filename,
GCProperties props)
Populates the properties of the
ResultSet whose
head part is stored in the provided filename |
static void |
tailPoperties(String filename,
GCProperties props)
Populates the properties of the
ResultSet whose
last part is stored in the provided filename |
public static String goToLast(String filename, GCProperties props)
ResultSet whose
member is the part that is stored in the provided filename and populates the propertiesfilename - The filename that stores the part whose end must be reachedprops - The properties of the ResultSet that must be populatedpublic static String goToHead(String filename, GCProperties props)
ResultSet whose
member is the part that is stored in the provided filename and populates the propertiesfilename - The filename that stores the part whose head must be reachedprops - The properties of the ResultSet that must be populatedpublic static void headPoperties(String filename, GCProperties props)
ResultSet whose
head part is stored in the provided filenamefilename - The filename storing the head part of the ResultSetprops - The properties of the ResultSetpublic static void tailPoperties(String filename, GCProperties props)
ResultSet whose
last part is stored in the provided filenamefilename - The filename storing the last part of the ResultSetprops - The properties of the ResultSetpublic static boolean alreadyChecked(String filename, MessageDigest algorithm, Set<String> checked)
filename - The file to checkalgorithm - The encription algorithm used to create a hash of the filename namechecked - The set of checked filestrue if the file has been checked, false otherwiseCopyright © 2019. All Rights Reserved.