1 24 25 package com.mckoi.store; 26 27 import java.io.IOException ; 28 29 39 40 interface StoreDataAccessor { 41 42 45 boolean exists(); 46 47 50 boolean delete(); 51 52 56 void open(boolean read_only) throws IOException ; 57 58 61 void close() throws IOException ; 62 63 64 68 void read(long position, byte[] buf, int off, int len) throws IOException ; 69 70 74 void write(long position, byte[] buf, int off, int len) throws IOException ; 75 76 81 void setSize(long new_size) throws IOException ; 82 83 86 long getSize() throws IOException ; 87 88 92 void synch() throws IOException ; 93 94 95 } 96 97 | Popular Tags |