question: public void put ( URI uri , byte [ ] bimg , BufferedImage img ) { synchronized ( bytemap ) { while ( bytesize > 1000 * 1000 * 50 ) { URI olduri = bytemapAccessQueue . removeFirst ( ) ; byte [ ] oldbimg = bytemap . remove ( olduri ) ; bytesize -= oldbimg . length ; log ( "removed 1 img from byte cache" ) ; } bytemap . put ( uri , bimg ) ; bytesize += bimg . length ; bytemapAccessQueue . addLast ( uri ) ; } addToImageCache ( uri , img ) ; }
target:  Put a tile image into the cache. This puts both a buffered image and array of bytes that make up the compressed image.