au.com.lastweekend.jen.util
Class URLCache<T>

java.lang.Object
  extended by au.com.lastweekend.jen.util.URLCache<T>
Type Parameters:
T -

public class URLCache<T>
extends java.lang.Object

Cache URLs can where possible compare lastModified times.

Version:
$Id:URLCache.java 97 2008-02-09 07:52:07Z lwoggardner $
Author:
Grant Gardner grant@lastweekend.com.au

Nested Class Summary
 class URLCache.CacheEntry
           
 
Constructor Summary
URLCache()
           
 
Method Summary
 void clear()
           
 T get(java.net.URL resource)
           
protected  long lastModified(java.net.URL resource)
           
 void put(java.net.URL resource, T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLCache

public URLCache()
Method Detail

get

public T get(java.net.URL resource)

put

public void put(java.net.URL resource,
                T value)

lastModified

protected long lastModified(java.net.URL resource)

clear

public void clear()


Copyright © 2008. All Rights Reserved.