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
;
11 * @version $Id: FileCache.java 2422 2007-07-25 23:07:49Z tgaskins $
13 public interface FileCache
15 public static final String OS_SPECIFIC_DATA_PATH
= "FileCache.OSSpecificDataPathKey";
17 public boolean contains(String fileName
);
19 public java
.io
.File
newFile(String fileName
);
21 java
.net
.URL
findFile(String fileName
, boolean checkClassPath
);
23 void removeFile(java
.net
.URL url
);
25 void addCacheLocation(String newPath
);
27 void removeCacheLocation(String newPath
);
29 java
.util
.List
<java
.io
.File
> getCacheLocations();
31 java
.io
.File
getWriteLocation();
33 void addCacheLocation(int index
, String newPath
);