cz.hdf.cdnavigator
Class Cache.Updater

java.lang.Object
  extended by cz.hdf.cdnavigator.Cache.Updater
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Cache

private class Cache.Updater
extends java.lang.Object
implements java.lang.Runnable

Go through cache directory and update timeFileSizes structure. Count whole cache size and update sizes for cache files modification time.


Constructor Summary
private Cache.Updater()
           
 
Method Summary
private  void lookDirectory(java.io.File _file, java.util.SortedMap<java.lang.Long,java.lang.Long> _filesSizes, javax.swing.tree.DefaultMutableTreeNode _parentNode)
          directory deepScan, updates cache structure
 void run()
          start cache process. update time or copy file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cache.Updater

private Cache.Updater()
Method Detail

run

public void run()
start cache process. update time or copy file

Specified by:
run in interface java.lang.Runnable

lookDirectory

private void lookDirectory(java.io.File _file,
                           java.util.SortedMap<java.lang.Long,java.lang.Long> _filesSizes,
                           javax.swing.tree.DefaultMutableTreeNode _parentNode)
directory deepScan, updates cache structure

Parameters:
_file - directory to scan
_filesSizes - cache structure
_parentNode -


CDnavigator JavaDoc, HDF company www.hdf.cz