| java.lang.Object com.puppycrawl.tools.checkstyle.PropertyCacheFile
PropertyCacheFile | final class PropertyCacheFile (Code) | | This class maintains a persistent store of the files that have
checked ok and their associated timestamp. It uses a property file
for storage. A hashcode of the Configuration is stored in the
cache file to ensure the cache is invalidated when the
configuration has changed.
author: Oliver Burn |
Method Summary | |
boolean | alreadyChecked(String aFileName, long aTimestamp) | void | checkedOk(String aFileName, long aTimestamp) Records that a file checked ok. | void | destroy() Cleans up the object and updates the cache file. |
PropertyCacheFile | PropertyCacheFile(Configuration aCurrentConfig, String aFileName)(Code) | | Creates a new PropertyCacheFile instance.
Parameters: aCurrentConfig - the current configuration, not null Parameters: aFileName - the cache file |
alreadyChecked | boolean alreadyChecked(String aFileName, long aTimestamp)(Code) | | whether the specified file has already been checked ok Parameters: aFileName - the file to check Parameters: aTimestamp - the timestamp of the file to check |
checkedOk | void checkedOk(String aFileName, long aTimestamp)(Code) | | Records that a file checked ok.
Parameters: aFileName - name of the file that checked ok Parameters: aTimestamp - the timestamp of the file |
destroy | void destroy()(Code) | | Cleans up the object and updates the cache file. *
|
|
|