net
Class DateIncludingURL

java.lang.Object
  extended by net.LatestURL
      extended by net.DateIncludingURL
All Implemented Interfaces:
Initializable

public class DateIncludingURL
extends LatestURL

The path to the url also contains a date string, which makes the deduction of the modification time faster.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.LatestURL
LatestURL.Dump, LatestURL.URLTime
 
Field Summary
private  SimpleDateFormat parse
           
private  int pos
           
 
Constructor Summary
DateIncludingURL(URL dir, FileFilter filter, int namepos, SimpleDateFormat df)
          Constructs an new latest url object.
DateIncludingURL(URL dir, int namepos, SimpleDateFormat df)
          Constructs an new latest url object.
 
Method Summary
protected  LatestURL.URLTime deduceYoungest(Collection<URL> cc)
          The base class only uses the modification time of the url.
 
Methods inherited from class net.LatestURL
getLatest, getModificationTime, init, last, last, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pos

private int pos

parse

private SimpleDateFormat parse
Constructor Detail

DateIncludingURL

public DateIncludingURL(URL dir,
                        int namepos,
                        SimpleDateFormat df)
Constructs an new latest url object. On construct, we retrieve the filtered references found and store them in a cache. Further calls to LatestURL.update() first check, if new references had been added to or removed from the base url and acts only on the changes.


DateIncludingURL

public DateIncludingURL(URL dir,
                        FileFilter filter,
                        int namepos,
                        SimpleDateFormat df)
Constructs an new latest url object. On construct, we retrieve the filtered references found and store them in a cache. Further calls to LatestURL.update() first check, if new references had been added to or removed from the base url and acts only on the changes.

Method Detail

deduceYoungest

protected LatestURL.URLTime deduceYoungest(Collection<URL> cc)
The base class only uses the modification time of the url.

Overrides:
deduceYoungest in class LatestURL