1 22 23 package apollo; 24 25 import java.io.*; 26 import java.net.*; 27 28 public interface PersistenceService 29 { 30 public final static int CACHED = 0; 31 public final static int TEMPORARY = 1; 32 public final static int DIRTY = 2; 33 34 public long create( URL url, long maxSize ) throws MalformedURLException, IOException; 35 36 public FileContents get( URL url ) throws MalformedURLException, FileNotFoundException, IOException; 37 38 public void delete( URL url ) throws MalformedURLException, IOException; 39 40 public String [] getNames( URL url ) throws MalformedURLException, IOException; 41 42 public int getTag( URL url ) throws MalformedURLException, IOException; 43 44 public void setTag( URL url, int tag ) throws MalformedURLException, IOException; 45 } 46 | Popular Tags |