public static synchronized void reportCache ( ) { Tools . log ( " PictureCache.reportCache: cache contains: " + Integer . toString ( pictureCache . size ( ) ) + " max: " + Integer . toString ( maxCache ) ) ; //Tools.freeMem(); Enumeration e = pictureCache . keys ( ) ; while ( e . hasMoreElements ( ) ) { Tools . log ( " Cache contains: " + ( ( String ) e . nextElement ( ) ) ) ; } Tools . log ( " End of cache contents" ) ; }
method to inspect the cache