Class URLCache


  • public class URLCache
    extends java.lang.Object
    • Constructor Detail

      • URLCache

        public URLCache​(java.io.File root)
    • Method Detail

      • get

        public URLCache.Info get​(java.net.URI uri)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • infos

        public java.util.Map<java.io.File,​URLCache.Info> infos()
      • get

        public URLCache.Info get​(java.io.File file,
                                 java.net.URI uri)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • toName

        public static java.lang.String toName​(java.net.URI uri)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • update

        public static void update​(java.io.File file,
                                  java.lang.String tag)
      • getCacheFileFor

        public java.io.File getCacheFileFor​(java.net.URI url)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getCacheInfoFileFor

        public java.io.File getCacheInfoFileFor​(java.net.URI url)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • clear

        public boolean clear​(java.net.URI uri)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • isCached

        public boolean isCached​(java.net.URI url)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception