Updated to worldwind release 20070817
[worldwind-tracker.git] / gov / nasa / worldwind / cache / FileCache.java
blob76ccae7e46cc9cc411d5b68581052536f56b48e3
1 /*
2 Copyright (C) 2001, 2006 United States Government
3 as represented by the Administrator of the
4 National Aeronautics and Space Administration.
5 All Rights Reserved.
6 */
7 package gov.nasa.worldwind.cache;
9 /**
10 * @author Tom Gaskins
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);