public void expire()
synchronized public void expire()
   public void expire()   {      byte diskdata[] = new byte[TILE_SIZE * TILE_SIZE * 3];      // 3 bytes per pixel, TILE_SIZExTILE_SIZE pixels      int dataOffset = 0;      for (int dataCount = 0; dataCount < data.length; dataCount++)      {         for (int sampleCount = 0; sampleCount < 3; sampleCount++)         {            diskdata[dataOffset + sampleCount] =               (byte) ((data[dataCount] & masks[sampleCount])                  >> offsets[sampleCount]);         }         dataOffset += 3;      }      try      {         file.position(fposition);         file.write(ByteBuffer.wrap(diskdata));         file.force(true);      }      catch (IOException ioe)      {         console.println(MessageStrings.getString("Tile.Could_not_write_tile_to_disk.")); //$NON-NLS-1$      }      location = LOCATION_DISK;      data = null;   }