1 16 17 package org.apache.jetspeed.cache.disk; 18 19 import java.io.*; 20 21 27 public interface DiskCacheEntry { 28 29 35 public String getURL(); 36 37 43 public String getSourceURL(); 44 45 52 public File getFile(); 53 54 60 public String getData() throws IOException; 61 62 68 public InputStream getInputStream() throws IOException; 69 70 77 public Reader getReader() throws IOException; 78 79 87 public Writer getWriter() throws IOException; 88 89 94 public long getLastModified(); 95 96 101 public void setLastModified(long time); 102 103 108 public long getExpirationTime(); 109 110 115 public void setExpirationTime(long time); 116 117 122 public boolean hasExpired(); 123 124 129 public boolean isLocal(); 130 131 } 132 133 | Popular Tags |