1 24 25 package com.mckoi.store; 26 27 import java.util.List ; 28 import java.io.InputStream ; 29 import java.io.OutputStream ; 30 import java.io.IOException ; 31 32 44 45 public interface Store { 46 47 58 AreaWriter createArea(long size) throws IOException ; 59 60 70 void deleteArea(long id) throws IOException ; 71 72 88 InputStream getAreaInputStream(long id) throws IOException ; 89 90 105 Area getArea(long id) throws IOException ; 106 107 123 MutableArea getMutableArea(long id) throws IOException ; 124 125 127 140 void lockForWrite(); 141 142 145 void unlockForWrite(); 146 147 149 155 boolean lastCloseClean(); 156 157 164 List getAllAreas() throws IOException ; 165 166 } 167 168 | Popular Tags |