1 22 package fr.dyade.aaa.util; 23 24 import java.io.File ; 25 import java.io.IOException ; 26 27 31 public interface Repository { 32 35 public void init(File dir) throws IOException ; 36 37 42 public String [] list(String prefix) throws IOException ; 43 44 47 public void save(String dirName, String name, byte[] content) throws IOException ; 48 49 54 public byte[] load(String dirName, String name) throws IOException ; 55 56 61 public Object loadobj(String dirName, String name) throws IOException , ClassNotFoundException ; 62 63 66 public void delete(String dirName, String name) throws IOException ; 67 68 71 public void commit() throws IOException ; 72 73 76 public void close() throws IOException ; 77 78 83 public int getNbSavedObjects(); 84 85 90 public int getNbDeletedObjects(); 91 92 97 public int getNbBadDeletedObjects(); 98 99 104 public int getNbLoadedObjects(); 105 } 106 | Popular Tags |