Package com.openhtmltopdf.swing
Class NaiveUserAgent.NullCache<T>
- java.lang.Object
-
- com.openhtmltopdf.swing.NaiveUserAgent.NullCache<T>
-
- All Implemented Interfaces:
FSMultiThreadCache<T>
- Enclosing class:
- NaiveUserAgent
protected static class NaiveUserAgent.NullCache<T> extends Object implements FSMultiThreadCache<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNullCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget(String uri)voidput(String uri, T value)Store value in cache.
-
-
-
Method Detail
-
get
public T get(String uri)
- Specified by:
getin interfaceFSMultiThreadCache<T>- Parameters:
uri- The resolved uri as returned from any uri resolver. Never null.- Returns:
- The contents of that uri or null if not cached.
-
put
public void put(String uri, T value)
Description copied from interface:FSMultiThreadCacheStore value in cache. Please note that in a multi-threaded environment this may be called multiple times with the same uri while get returns null.- Specified by:
putin interfaceFSMultiThreadCache<T>- Parameters:
uri- The resolved uri as returned from any uri resolver. Never null.value- The contents of the uri as returned from any protocol handlers or the default user agent. Never null.
-
-