Store remote files in a temporary location. cacheRemoteFile - true to store remote files in the World Wind cache, or false to Parameters: address - the file address: either a local file, a URL, or a path relative to the root of the file Undefined whether the retrieved file is stored in the World Wind cache or in a temporary location. If a remote file is requested multiple times with different values for cacheRemoteFile, it is The temporary locationįor a retrieved file does not persist between runtime sessions, and subsequent invocations of this method may not This parameter has no effect if the file exists locally. The cacheRemoteFile parameter specifies whether to store a retrieved remote file in the World WindĬache or in a temporary location. In a temporary location and subsequent invocations of this method return a URL to the retrieved file. When the request succeeds the file is stored either in the local World Wind cache or Otherwise if the specified address is a URL to a remote location, this initiates a request for the file and If theįile exists locally, including as a resource on the classpath, this returns a URL to theįile. Requests a file and specifies whether to store retrieved files in the cache or in a temporary location. makeJarURLCachePath protected String makeJarURLCachePath( URL jarURL,.contentType - the mime type of the file's contents. Parameters: url - the URL to obtain the file. If the query string is empty after removing any private parameters, it is ignoredĪnd only the path part of the URL is used as the filename. Writing this parameter to the cache would expose that parameter toĪnyone using the same machine. Unique connection id, and must not be shared. For example, the "CONNECTID" query parameter typically encodes a user's This removes any private parameters from the query string to ensure that those parameters are not written to theįile store as part of the cache name. URLs are stored under the same hashCode folder in the cache and are differentiated by their If two URLs have the same hash code, then both Should a large number of files be requested from the same host. This is necessary to avoiding the operating system's maximum file limit The hashCode folder is used to limit the number of files Query is the URL's query string, and suffix is either the path's suffix or a suffixĬreated from the specified content type. Where host is the name of the host machine, hashCode is a four digit hash code computedįrom the string "path" or "path_query" (if the URL has a query string), path is the URL's path part, Otherwise, this returns a path name formatted as follows: Query string, then this returns a path name formatted as follows: Makes a path to the file in the cache from the file's generic URL and content type. Methods inherited from interface java.beans.AVList addPropert圜hangeListener, addPropert圜hangeListener, clearList, copy, firePropert圜hange, firePropert圜hange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropert圜hangeListener, removePropert圜hangeListener, setValue, setValues Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Methods inherited from class java.lang.AVListImpl addPropert圜hangeListener, addPropert圜hangeListener, clearList, copy, firePropert圜hange, firePropert圜hange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropert圜hangeListener, removePropert圜hangeListener, setValue, setValues AbstractFileStore addLocation, addLocation, buildLocationPath, buildReadPaths, buildWritePaths, containsFile, determineAllUserLocation, determineSingleUserLocation, doListFileNames, doListFileNames, findFile, getLocations, getUserHomeDir, getWriteLocation, isInstallLocation, listAllFileNames, listFile, listFileName, listFileNames, listTopFileNames, makeAbsoluteFile, makeAbsolutePath, markFileUsed, newFile, normalizeFileStoreName, propertyToPath, removeFile, removeLocation, storeLocationFor, storePathForFile Updates a cache entry with information available once the file is retrieved.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |