Class CacheManager


  • class CacheManager
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.nio.file.Path cacheHome  
      private java.security.MessageDigest digest  
      private static java.lang.String DIGEST_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.Path cacheFile​(java.nio.file.Path path)  
      private static java.nio.file.Path getCacheHome()  
      private static java.nio.file.Path getPathDefault​(java.lang.String key, java.lang.Object defaultValue)  
      (package private) java.lang.String hash​(byte[] bytes)  
      private java.lang.String hash​(java.nio.file.Path path)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • CacheManager

        public CacheManager()
    • 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