Class ResourceImpl

java.lang.Object
ddf.catalog.data.impl.BinaryContentImpl
ddf.catalog.resource.impl.ResourceImpl
All Implemented Interfaces:
ddf.catalog.data.BinaryContent, ddf.catalog.resource.Resource

public class ResourceImpl extends BinaryContentImpl implements ddf.catalog.resource.Resource
This class is a generic implementation of the Resource interface
  • Constructor Details

    • ResourceImpl

      public ResourceImpl(InputStream inputStream, String name)
      Instantiates a new product Resource.
      Parameters:
      inputStream - the InputStream of the Resource
      name - the name of the Resource
    • ResourceImpl

      public ResourceImpl(InputStream inputStream, javax.activation.MimeType mimeType, String name)
      Instantiates a new product Resource.
      Parameters:
      inputStream - the InputStream of the Resource
      mimeType - the MimeType of the Resource
      name - the name of the Resource
    • ResourceImpl

      public ResourceImpl(InputStream inputStream, String mimeTypeString, String name)
      Instantiates a new product Resource.
      Parameters:
      inputStream - the InputStream of the Resource
      mimeTypeString - the Mime Type value of the Resource
      name - the name of the Resource
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface ddf.catalog.resource.Resource