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

    Modifier and Type Method Description
    java.io.InputStream get​(java.net.URL url)  
    void put​(java.net.URL url, java.io.InputStream data)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • get

      public java.io.InputStream get​(java.net.URL url)
      Specified by:
      get in interface LocalCache
      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:
      put in interface LocalCache
      Parameters:
      url - the URL request that should be cached
      data - the input stream that provides the data