1 package org.springframework.samples.imagedb; 2 3 import java.io.InputStream ; 4 import java.io.OutputStream ; 5 import java.util.List ; 6 7 import org.springframework.dao.DataAccessException; 8 9 15 public interface ImageDatabase { 16 17 List getImages() throws DataAccessException; 18 19 void streamImage(String name, OutputStream os) throws DataAccessException; 20 21 void storeImage(String name, InputStream is, int contentLength, String description) 22 throws DataAccessException; 23 24 void checkImages() throws DataAccessException; 25 26 void clearDatabase() throws DataAccessException; 27 28 } 29 | Popular Tags |