1 7 8 package javax.jnlp; 9 10 import java.io.InputStream; 11 import java.io.OutputStream; 12 import java.io.RandomAccessFile; 13 import java.io.IOException; 14 import java.io.FileNotFoundException; 15 import java.net.URL; 16 import java.net.MalformedURLException; 17 18 61 62 public interface PersistenceService { 63 64 public static final int CACHED = 0; 65 public static final int TEMPORARY = 1; 66 public static final int DIRTY = 2; 67 68 85 public long create(URL url, long maxsize) 86 throws MalformedURLException, IOException; 87 88 103 public FileContents get(URL url) 104 throws MalformedURLException, IOException, FileNotFoundException; 105 106 118 public void delete(URL url) 119 throws MalformedURLException, IOException; 120 121 135 public String[] getNames(URL url) throws MalformedURLException, IOException; 136 137 158 public int getTag(URL url) 159 throws MalformedURLException, IOException; 160 161 175 public void setTag(URL url, int tag) 176 throws MalformedURLException, IOException; 177 178 } 179 180 | Popular Tags |