Package ddf.catalog.resource.impl
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
This class is a generic implementation of the
Resource interface-
Constructor Summary
ConstructorsConstructorDescriptionResourceImpl(InputStream inputStream, String name) Instantiates a new productResource.ResourceImpl(InputStream inputStream, String mimeTypeString, String name) Instantiates a new productResource.ResourceImpl(InputStream inputStream, javax.activation.MimeType mimeType, String name) Instantiates a new productResource. -
Method Summary
Methods inherited from class ddf.catalog.data.impl.BinaryContentImpl
getByteArray, getInputStream, getMimeType, getMimeTypeValue, getSize, setSize, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ddf.catalog.data.BinaryContent
getByteArray, getInputStream, getMimeType, getMimeTypeValue, getSize
-
Constructor Details
-
ResourceImpl
Instantiates a new productResource.- Parameters:
inputStream- theInputStreamof theResourcename- the name of theResource
-
ResourceImpl
Instantiates a new productResource.- Parameters:
inputStream- theInputStreamof theResourcemimeType- theMimeTypeof theResourcename- the name of theResource
-
ResourceImpl
Instantiates a new productResource.- Parameters:
inputStream- theInputStreamof theResourcemimeTypeString- the Mime Type value of theResourcename- the name of theResource
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceddf.catalog.resource.Resource
-