Class CacheManager
- java.lang.Object
-
- org.fedoraproject.xmvn.resolver.impl.CacheManager
-
class CacheManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.nio.file.PathcacheHomeprivate java.security.MessageDigestdigestprivate static java.lang.StringDIGEST_ALGORITHM
-
Constructor Summary
Constructors Constructor Description CacheManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.PathcacheFile(java.nio.file.Path path)private static java.nio.file.PathgetCacheHome()private static java.nio.file.PathgetPathDefault(java.lang.String key, java.lang.Object defaultValue)(package private) java.lang.Stringhash(byte[] bytes)private java.lang.Stringhash(java.nio.file.Path path)
-
-
-
Field Detail
-
DIGEST_ALGORITHM
private static final java.lang.String DIGEST_ALGORITHM
- See Also:
- Constant Field Values
-
digest
private final java.security.MessageDigest digest
-
cacheHome
private static volatile java.nio.file.Path cacheHome
-
-
Method Detail
-
hash
private java.lang.String hash(java.nio.file.Path path) throws java.io.IOException- Throws:
java.io.IOException
-
hash
java.lang.String hash(byte[] bytes)
-
getPathDefault
private static java.nio.file.Path getPathDefault(java.lang.String key, java.lang.Object defaultValue)
-
getCacheHome
private static java.nio.file.Path getCacheHome()
-
cacheFile
public java.nio.file.Path cacheFile(java.nio.file.Path path) throws java.io.IOException- Throws:
java.io.IOException
-
-