public interface LocationCache
Location
to a faster (typically local) one.Modifier and Type | Method and Description |
---|---|
Location |
cachedLocation(Location source)
Gets the cache location of a given data source.
|
boolean |
canCache(Location source)
Gets whether the given location can be cached by this cache.
|
String |
loadChecksum(Location source)
Loads the checksum value which corresponds to the cached location.
|
void |
saveChecksum(Location source,
String checksum)
Associates the given checksum value with the specified source location.
|
boolean canCache(Location source)
Location cachedLocation(Location source)
Location
where the source data is, or would be, cached.IllegalArgumentException
- if the given source cannot be cached (see
canCache(org.scijava.io.location.Location)
).String loadChecksum(Location source) throws IOException
source
- The source location for which the cached checksum is desired.IOException
- If something goes wrong accessing the checksum.DataHandle.checksum()
void saveChecksum(Location source, String checksum) throws IOException
source
- The source location for which the checksum should be cached.checksum
- The checksum value to cache.IOException
- If something goes wrong caching the checksum.DataHandle.checksum()
Copyright © 2015–2022 SciJava. All rights reserved.