public CacheObject load(Object key){
  if (key != null) {
    String xAndY=key.toString();
    int commaIndex=xAndY.indexOf(',');
    int x=Integer.parseInt(xAndY.substring(0,commaIndex));
    int y=Integer.parseInt(xAndY.substring(commaIndex + 1));
    if (Debug.debugging("asrpdetail")) {
      Debug.output("Getting tiled image " + x + ", "+ y+ " (from "+ xAndY+ ")");
    }
    try {
      OMGraphic block=getBlock(x,y);
      if (block != null) {
        return new ASRPBlockCacheObject(xAndY.intern(),block);
      }
    }
 catch (    IOException ioe) {
      Debug.error("ASRPDirectory caught exception creating tiled image for " + xAndY);
    }
  }
  return null;
}

public CacheObject load ( Object key ) { if ( key != null ) { String xAndY = key . toString ( ) ; int commaIndex = xAndY . indexOf ( ',' ) ; int x = Integer . parseInt ( xAndY . substring ( 0 , commaIndex ) ) ; int y = Integer . parseInt ( xAndY . substring ( commaIndex + 1 ) ) ; if ( Debug . debugging ( "asrpdetail" ) ) { Debug . output ( "Getting tiled image " + x + ", " + y + " (from " + xAndY + ")" ) ; } try { OMGraphic block = getBlock ( x , y ) ; if ( block != null ) { return new ASRPBlockCacheObject ( xAndY . intern ( ) , block ) ; } } catch ( IOException ioe ) { Debug . error ( "ASRPDirectory caught exception creating tiled image for " + xAndY ) ; } } return null ; }
load a block image into the cache , based on the relative coordinates of the block as a key .
