net
Class DateIncludingURL
java.lang.Object
net.LatestURL
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.
pos
private int pos
parse
private SimpleDateFormat parse
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.
deduceYoungest
protected LatestURL.URLTime deduceYoungest(Collection<URL> cc)
- The base class only uses the modification time of the url.
- Overrides:
deduceYoungest in class LatestURL