Package org.jxmapviewer.cache
Class NoOpLocalCache
java.lang.Object
org.jxmapviewer.cache.NoOpLocalCache
- All Implemented Interfaces:
LocalCache
public class NoOpLocalCache extends java.lang.Object implements LocalCache
A dummy implementation that does nothing
-
Constructor Summary
Constructors Constructor Description NoOpLocalCache() -
Method Summary
-
Constructor Details
-
NoOpLocalCache
public NoOpLocalCache()
-
-
Method Details
-
get
public java.io.InputStream get(java.net.URL url)- Specified by:
getin interfaceLocalCache- Parameters:
url- the URL request to cache- Returns:
- a (local) stream to use instead or
null.
-
put
public void put(java.net.URL url, java.io.InputStream data)- Specified by:
putin interfaceLocalCache- Parameters:
url- the URL request that should be cacheddata- the input stream that provides the data
-