1 30 31 32 package org.hsqldb.lib; 33 34 import java.io.IOException ; 35 36 43 public interface Storage { 44 45 long length() throws IOException ; 46 47 void seek(long position) throws IOException ; 48 49 long getFilePointer() throws IOException ; 50 51 int read() throws IOException ; 52 53 void read(byte[] b, int offset, int length) throws IOException ; 54 55 void write(byte[] b, int offset, int length) throws IOException ; 56 57 int readInt() throws IOException ; 58 59 void writeInt(int i) throws IOException ; 60 61 long readLong() throws IOException ; 62 63 void writeLong(long i) throws IOException ; 64 65 void close() throws IOException ; 66 67 boolean isReadOnly(); 68 69 boolean wasNio(); 70 } 71 | Popular Tags |