public class DataCache extends Object
Modifier and Type | Field and Description |
---|---|
private Set<Path> |
ignores |
private static Logger |
LOGGER |
private Map<Path,String> |
newSha1 |
private Map<Path,String> |
oldSha1 |
private Path |
recordFile |
private Path |
root |
private int |
unchanged |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Path path) |
private void |
deleteAll() |
private Stream<Path> |
files() |
String |
getOldSha1(Path path) |
void |
ignore(Path path) |
void |
updateSha1(Path path,
String string) |
void |
write() |
private static final Logger LOGGER
private final Path root
private final Path recordFile
private int unchanged
public DataCache(Path path, String string) throws IOException
IOException
public void write() throws IOException
IOException
public boolean contains(Path path)
public void ignore(Path path)
private void deleteAll() throws IOException
IOException