Class MemoryResourceSet

  • All Implemented Interfaces:
    ResourceSet

    public class MemoryResourceSet
    extends java.lang.Object
    implements ResourceSet
    A memory based respurce set (content is stored in RAM).
    • Method Summary

      Modifier and Type Method Description
      java.lang.String asString()  
      java.util.Hashtable<java.lang.String,​MemoryResource> getMemSet()
      Returns the set of memory resources.
      Resource open​(java.lang.String url)
      Opens a resource in this resource set.
      void printStats​(java.io.PrintWriter out)  
      • Methods inherited from class java.lang.Object

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

      • MemoryResourceSet

        public MemoryResourceSet()
    • Method Detail

      • open

        public Resource open​(java.lang.String url)
        Description copied from interface: ResourceSet
        Opens a resource in this resource set. If the resource has already been created it will be returned. A new resources is created otherwise.
        Specified by:
        open in interface ResourceSet
        Parameters:
        url - the URL to open.
        Returns:
        resource
      • getMemSet

        public java.util.Hashtable<java.lang.String,​MemoryResource> getMemSet()
        Returns the set of memory resources.
        Returns:
        the set of memory resources
      • asString

        public java.lang.String asString()
      • printStats

        public void printStats​(java.io.PrintWriter out)