Package eu.mihosoft.vmf.core.io
Class MemoryResourceSet
- java.lang.Object
-
- eu.mihosoft.vmf.core.io.MemoryResourceSet
-
- All Implemented Interfaces:
ResourceSet
public class MemoryResourceSet extends java.lang.Object implements ResourceSet
A memory based respurce set (content is stored in RAM).
-
-
Constructor Summary
Constructors Constructor Description MemoryResourceSet()
-
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)
-
-
-
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 interfaceResourceSet
- 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)
-
-