Package io.codemodder
Interface FileCache
public interface FileCache
A cache for file contents. We cache contents because generally memory is cheap and fast. We may
want to offer configuration here eventually for situations where the opposite is true.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileCache
static FileCache
createDefault
(int maxSize) Get the string contents of a file.void
overrideEntry
(Path path, String contents) Put the string contents of a file into the cache.void
removeEntry
(Path resolve) Remove the string contents of a file from the cache if it exists.
-
Method Details
-
get
Get the string contents of a file.- Throws:
IOException
-
overrideEntry
Put the string contents of a file into the cache. -
removeEntry
Remove the string contents of a file from the cache if it exists. -
createDefault
-
createDefault
-