public void addChunk(byte[] data){
  cache.write(data,0,data.length);
  currentSize+=data.length;
}

public void addChunk ( byte [ ] data ) { cache . write ( data , 0 , data . length ) ; currentSize += data . length ; }
add a new chunk
