1 32 package com.imagero.uio.buffer; 33 34 import java.io.IOException ; 35 36 41 public interface BufferManager { 42 43 final byte[] empty = new byte[0]; 44 45 52 byte[] getData(int i) throws IOException ; 53 54 59 int getCount(); 60 61 68 int getDataLength(int i); 69 70 76 int getIndex(long pos); 77 78 82 long getLength(); 83 84 87 void close(); 88 89 119 long getDataStart(int i); 120 121 124 void clear(); 125 126 130 int getMaxCache(); 131 132 135 void setMaxCache(int max); 136 137 140 void clear(long start, long end) throws IOException ; 141 } 142 | Popular Tags |