Package media
Class ImageService
- java.lang.Object
-
- media.ImageService
-
@ApplicationScoped public class ImageService extends Object
Classe contenente la logica per il recupero di immagini da unità persistenti
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedImageService()protectedImageService(MediaRepository mediaRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetImage(@NotBlank String filename)Ritorna l'input stream di un immagine
-
-
-
Constructor Detail
-
ImageService
protected ImageService()
-
ImageService
@Inject protected ImageService(MediaRepository mediaRepository)
-
-
Method Detail
-
getImage
public InputStream getImage(@NotBlank @NotBlank String filename) throws IOException
Ritorna l'input stream di un immagine- Parameters:
filename- nome dell'immagine- Returns:
- input stream dell'immagine
- Throws:
IOException
-
-