void sanityCheck() { if (this.buffersize<MINBUFFERSIZE) { throw new BufferFileException("buffer size too small "+this.buffersize); } if (this.seekStart<0) { throw new BufferFileException("can't start at negative position "+this.seekStart); } }