1 32 package com.imagero.uio.buffer; 33 34 import com.imagero.uio.RandomAccess; 35 import com.imagero.uio.RandomAccessRO; 36 37 import java.io.IOException ; 38 39 46 public class MutableRABufferManager extends RABufferManager implements MutableBufferManager { 47 48 53 public MutableRABufferManager(RandomAccess ra, long offset, int length) { 54 this(ra, offset, length, defaultBufferSize); 55 } 56 57 64 public MutableRABufferManager(RandomAccess ra, long offset, int length, int dsLength) { 65 super(ra, offset, length, dsLength); 66 } 67 68 protected RABufferRO createBuffer(RandomAccessRO ro, long offset, int dsLength) { 69 return new RABuffer((RandomAccess) ro, offset, dsLength); 70 } 71 72 73 public void clear() { 74 try { 75 flush(); 76 } 77 catch (IOException ex) { 78 ex.printStackTrace(); 79 } 80 super.clear(); 81 } 82 } 83 | Popular Tags |