Class ImageHandler
java.lang.Object
org.gcube.data.access.storagehub.handlers.content.ImageHandler
- All Implemented Interfaces:
ContentHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.gcube.common.storagehub.model.items.ImageFileorg.gcube.common.storagehub.model.items.nodes.ImageContentvoidinitiliseSpecificContent(InputStream is, String fileName, String mimeType, long size) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gcube.data.access.storagehub.handlers.content.ContentHandler
initiliseSpecificContent
-
Constructor Details
-
ImageHandler
public ImageHandler()
-
-
Method Details
-
requiresInputStream
public boolean requiresInputStream()- Specified by:
requiresInputStreamin interfaceContentHandler
-
initiliseSpecificContent
public void initiliseSpecificContent(InputStream is, String fileName, String mimeType, long size) throws Exception - Specified by:
initiliseSpecificContentin interfaceContentHandler- Throws:
Exception
-
getContent
public org.gcube.common.storagehub.model.items.nodes.ImageContent getContent()- Specified by:
getContentin interfaceContentHandler
-
buildItem
public org.gcube.common.storagehub.model.items.ImageFile buildItem(String name, String description, String login) - Specified by:
buildItemin interfaceContentHandler
-
transform
public ByteArrayOutputStream transform(Image image, String originalFile, int thumbWidth, int thumbHeight) throws Exception - Throws:
Exception
-