de.digitalcollections.iiif.hymir.image.business.api.ImageService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iiif-server-hymir Show documentation
Show all versions of iiif-server-hymir Show documentation
Hymir is a Java based IIIF Server. It is based on "IIIF API Java Libraries" (Java implementations of the IIIF specifications, see https://github.com/dbmdz/iiif-apis).
package de.digitalcollections.iiif.hymir.image.business.api;
import de.digitalcollections.iiif.hymir.model.exception.InvalidParametersException;
import de.digitalcollections.iiif.hymir.model.exception.UnsupportedFormatException;
import de.digitalcollections.iiif.model.image.ImageApiProfile;
import de.digitalcollections.iiif.model.image.ImageApiSelector;
import de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException;
import java.io.IOException;
import java.io.OutputStream;
import java.time.Instant;
/** Service providing image processing functionality. */
public interface ImageService {
default Instant getImageModificationDate(String identifier) throws ResourceNotFoundException {
return null;
}
void readImageInfo(String identifier, de.digitalcollections.iiif.model.image.ImageService info)
throws UnsupportedFormatException, UnsupportedOperationException, ResourceNotFoundException,
IOException;
void processImage(
String identifier, ImageApiSelector selector, ImageApiProfile profile, OutputStream os)
throws InvalidParametersException, UnsupportedOperationException, UnsupportedFormatException,
ResourceNotFoundException, IOException;
}