com.alogient.cameleon.sdk.content.service.ImageService Maven / Gradle / Ivy
The newest version!
package com.alogient.cameleon.sdk.content.service;
import com.alogient.cameleon.sdk.content.vo.media.ImageEntry;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
/**
* User: J?r?me Mirc
* Date: 9-Sep-2009
* Time: 9:31:58 AM
*/
public interface ImageService {
/**
* Retrieve an image
* @param imageEntry image entry
* @return the image
* @throws IOException if the image can't be retrieved
*/
public byte[] getImage(ImageEntry imageEntry) throws IOException;
/**
* Check if the image is available
* @param imageEntry describe an image
* @return true if the image exists, false otherwise.
*/
public boolean isImageAvailableOnLocal(ImageEntry imageEntry);
/**
* Retrieve the last time when the image has been modified
* @param imageEntry the image entry
* @return the last modify time
*/
public Date getLastModifyTime(ImageEntry imageEntry);
/**
* Save the image
* @param imageEntry the imageEntry
* @param imageStream the image inputstream
* @throws IOException if the image can't be saved
*/
public void save(ImageEntry imageEntry, InputStream imageStream) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy