1 9 package org.ozoneDB.core.storage.gammaStore; 10 11 import java.io.IOException ; 12 13 24 public interface Storage { 25 26 39 public void seek(long pos) throws IOException ; 40 41 45 public void write(byte[] b, int offset, int length) throws IOException ; 46 47 public void write(byte[] b) throws IOException ; 48 49 public void writeLong(long value) throws IOException ; 50 51 public void writeInt(int value) throws IOException ; 52 53 57 public void readFully(byte[] b, int offset, int length) throws IOException ; 58 59 public void readFully(byte[] b) throws IOException ; 60 61 public long readLong() throws IOException ; 62 63 public int readInt() throws IOException ; 64 65 68 public void setLength(long length) throws IOException ; 69 70 public void close() throws IOException ; 71 72 public long length() throws IOException ; 73 74 } 75 | Popular Tags |