1 24 25 package com.mckoi.store; 26 27 import java.io.IOException ; 28 29 35 36 interface JournalledResource { 37 38 41 int getPageSize(); 42 43 46 long getID(); 47 48 51 void read(long page_number, byte[] buf, int off) throws IOException ; 52 53 58 void write(long page_number, byte[] buf, int off, int len) throws IOException ; 59 60 64 void setSize(long size) throws IOException ; 65 66 69 long getSize() throws IOException ; 70 71 74 void open(boolean read_only) throws IOException ; 75 76 80 void close() throws IOException ; 81 82 86 void delete() throws IOException ; 87 88 91 boolean exists(); 92 93 } 94 95 | Popular Tags |