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()
Getter. |
| boolean | isValid()
This cache is valid if the cachefile is set. |
| Iterator | iterator()
Returns an iterator over the keys in the cache. |
| void | load()
Load the cache from underlying properties file. |
| 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)
Setter. |
| String | toString()
Override Object.toString(). |
Parameters: cachefile set the cachefile
Parameters: key the key
Returns: the stored value
Returns: the cachefile
Returns: true if all is ok false otherwise
Returns: An iterator over the keys.
Parameters: key the key value the value
Parameters: file new value
Returns: information about this cache