Package org.teamapps.ux.resource
Class ByteArrayResource
- java.lang.Object
-
- org.teamapps.ux.resource.ByteArrayResource
-
-
Constructor Summary
Constructors Constructor Description ByteArrayResource(byte[] data, java.lang.String name)ByteArrayResource(byte[] data, java.lang.String name, java.lang.String mimeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.io.InputStreamgetInputStream()longgetLength()java.lang.StringgetMimeType()java.lang.StringgetName()inthashCode()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.resource.Resource
asAttachment, expiring, getAsFile, getExpires, getLastModified, isAttachment, lastModified, withMimeType
-
-
-
-
Method Detail
-
getMimeType
public java.lang.String getMimeType()
- Specified by:
getMimeTypein interfaceResource
-
getInputStream
public java.io.InputStream getInputStream()
- Specified by:
getInputStreamin interfaceResource
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-