Class MemoryResource

All Implemented Interfaces:
org.gvsig.fmap.dal.resource.Resource, org.gvsig.fmap.dal.resource.spi.ResourceProvider, org.gvsig.tools.observer.Observable, org.gvsig.tools.observer.WeakReferencingObservable

public class MemoryResource extends AbstractNonBlockingResource
Resource based on memory. It may be used to represent some data loaded into memory, so it can be named as the data or the source resource loaded.
Author:
2009- César Ordiñana - gvSIG team
  • Field Details

  • Constructor Details

    • MemoryResource

      public MemoryResource(MemoryResourceParameters parameters) throws org.gvsig.fmap.dal.exception.InitializeException
      Creates a new MemoryResource.
      Parameters:
      parameters - to create the resource
      Throws:
      org.gvsig.fmap.dal.exception.InitializeException - if there is an error creating the resource
  • Method Details

    • get

      public Object get() throws org.gvsig.fmap.dal.resource.exception.AccessResourceException
      Description copied from class: AbstractResource
      Returns the real resource represented by this object.
      Specified by:
      get in interface org.gvsig.fmap.dal.resource.Resource
      Specified by:
      get in class AbstractResource
      Throws:
      org.gvsig.fmap.dal.resource.exception.AccessResourceException - if there is an error while accessing the resource
    • getName

      public String getName() throws org.gvsig.fmap.dal.resource.exception.AccessResourceException
      Description copied from class: AbstractResource
      Returns the name of the Resource.
      Specified by:
      getName in interface org.gvsig.fmap.dal.resource.Resource
      Specified by:
      getName in class AbstractResource
      Throws:
      org.gvsig.fmap.dal.resource.exception.AccessResourceException - if there is an error while accessing the resource
    • isThis

      public boolean isThis(org.gvsig.fmap.dal.resource.ResourceParameters parameters) throws org.gvsig.fmap.dal.resource.exception.ResourceException
      Throws:
      org.gvsig.fmap.dal.resource.exception.ResourceException