public class ResourceImpl extends BinaryContentImpl implements Resource
Resource
interfaceConstructor and Description |
---|
ResourceImpl(InputStream inputStream,
MimeType mimeType,
String name)
Instantiates a new product
Resource . |
ResourceImpl(InputStream inputStream,
String name)
Instantiates a new product
Resource . |
ResourceImpl(InputStream inputStream,
String mimeTypeString,
String name)
Instantiates a new product
Resource . |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the Resource.
|
getByteArray, getInputStream, getMimeType, getMimeTypeValue, getSize, setSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getByteArray, getInputStream, getMimeType, getMimeTypeValue, getSize
public ResourceImpl(InputStream inputStream, String name)
Resource
.inputStream
- the InputStream
of the Resource
name
- the name of the Resource
public ResourceImpl(InputStream inputStream, MimeType mimeType, String name)
Resource
.inputStream
- the InputStream
of the Resource
mimeType
- the MimeType
of the Resource
name
- the name of the Resource
public ResourceImpl(InputStream inputStream, String mimeTypeString, String name)
Resource
.inputStream
- the InputStream
of the Resource
mimeTypeString
- the Mime Type value of the Resource
name
- the name of the Resource
This work is licensed under a Creative Commons Attribution 4.0 International License.