Class SpeedTestResourceCache

java.lang.Object
net.targetr.wtm3.cache.ResourceCache
net.targetr.wtm3.cache.SpeedTestResourceCache

public class SpeedTestResourceCache extends ResourceCache
A ResourceCache that loads resources from a zip file.
  • Constructor Details

    • SpeedTestResourceCache

      public SpeedTestResourceCache()
      Constructs a ZipFileResourceCache.
  • Method Details

    • openInputStream

      protected InputStream openInputStream(String path) throws IOException
      Description copied from class: ResourceCache
      Opens an input stream to the resource.
      Specified by:
      openInputStream in class ResourceCache
      Parameters:
      path - the path to the resource in the class path.
      Returns:
      an input stream to the resource, or null if not found.
      Throws:
      IOException - if an I/O error occurs.
    • getName

      protected String getName()
      Description copied from class: ResourceCache
      Returns a name assigned to the source of this cache.
      Specified by:
      getName in class ResourceCache
      Returns:
      the source of this cache.