2 Copyright (C) 2001, 2006 United States Government
3 as represented by the Administrator of the
4 National Aeronautics and Space Administration.
7 package gov
.nasa
.worldwind
.cache
;
9 import gov
.nasa
.worldwind
.Configuration
;
10 import gov
.nasa
.worldwind
.avlist
.AVKey
;
11 import gov
.nasa
.worldwind
.util
.Logging
;
15 * @version $Id: BasicDataFileCache.java 2471 2007-07-31 21:50:57Z tgaskins $
17 public class BasicDataFileCache
extends AbstractFileCache
19 public BasicDataFileCache()
21 String cachePathName
= Configuration
.getStringValue(AVKey
.DATA_FILE_CACHE_CONFIGURATION_FILE_NAME
);
22 if (cachePathName
== null)
24 String message
= Logging
.getMessage("FileCache.NoConfiguration");
25 Logging
.logger().severe(message
);
26 throw new IllegalStateException(message
);
29 java
.io
.InputStream is
= this.getClass().getClassLoader().getResourceAsStream(cachePathName
);
32 String message
= Logging
.getMessage("FileCache.ConfigurationNotFound", cachePathName
);
33 Logging
.logger().severe(message
);
34 throw new IllegalStateException(message
);