org.apache.tools.ant.types.selectors.modifiedselector
public class PropertiesfileCache extends Object implements Cache
name | values | description | required |
---|---|---|---|
cache.cachefile | path to file | the name of the properties file | yes |
Since: Ant 1.6
Version: 2003-09-13
Constructor Summary | |
---|---|
PropertiesfileCache() Bean-Constructor. | |
PropertiesfileCache(File cachefile)
Constructor. |
Method Summary | |
---|---|
void | delete() Deletes the cache and its underlying file. |
Object | get(Object key)
Returns a value for a given key from the cache. |
File | getCachefile() |
boolean | isValid() |
Iterator | iterator()
Returns an iterator over the keys in the cache. |
void | load() |
void | put(Object key, Object value)
Saves a key-value-pair in the cache. |
void | save()
Saves modification of the cache.
|
void | setCachefile(File file) |
String | toString()
Override Object.toString(). |
Parameters: cachefile set the cachefile
Parameters: key the key
Returns: the stored value
Returns: An iterator over the keys.
Parameters: key the key value the value
Returns: information about this cache