1 package com.quadcap.sql.file; 2 3 40 41 import java.io.File ; 42 import java.io.FileDescriptor ; 43 import java.io.IOException ; 44 import java.io.RandomAccessFile ; 45 46 import java.util.BitSet ; 47 48 import com.quadcap.util.collections.LongIterator; 49 import com.quadcap.util.collections.LongMap; 50 51 import com.quadcap.util.Debug; 52 import com.quadcap.util.Util; 53 54 import com.quadcap.sql.Version; 55 56 60 public class NullStore extends BlockStore { 61 62 public NullStore() {} 63 64 73 public void init(File file, String mode, int blockSize, Object lock) 74 throws IOException 75 { 76 } 77 78 85 public void read(long blockNum, byte[] buf, int off) 86 throws IOException 87 { 88 throw new IOException ("NullStore.read()"); 89 } 90 91 98 public void write(long blockNum, byte[] buf) 99 throws IOException 100 { 101 throw new IOException ("NullStore.write()"); 102 } 103 104 107 public void restore(long blockNum, byte[] buf, int off) 108 throws IOException 109 { 110 throw new IOException ("NullStore.restore()"); 111 } 112 113 public void setLength(long length) throws IOException { 114 } 115 116 public boolean isEncrypted() { 117 return false; 118 } 119 120 public void close() throws IOException { 121 } 122 123 public void flush() throws IOException { 124 } 125 } 126 | Popular Tags |