1 16 17 package org.apache.jetspeed.cache.disk; 18 19 import java.io.*; 20 21 35 public interface DiskCache { 36 37 50 public DiskCacheEntry getEntry( String url ) throws IOException; 51 52 58 public DiskCacheEntry getEntry( String url, 59 boolean force ) throws IOException; 60 61 72 public DiskCacheEntry getEntry( String url, Reader is ) throws IOException; 73 74 78 public DiskCacheEntry[] getEntries(); 79 80 84 public void add( String url ) throws IOException; 85 86 90 public void remove( String url ) throws IOException; 91 92 93 97 public String fetch( String url, String destination ) throws IOException ; 98 99 103 public String getRoot(); 104 105 110 public void refresh( String url ); 111 112 116 public boolean isCached( String url ); 117 118 } 119 | Popular Tags |