KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > imagedb > ImageDatabase


1 package org.springframework.samples.imagedb;
2
3 import java.io.InputStream JavaDoc;
4 import java.io.OutputStream JavaDoc;
5 import java.util.List JavaDoc;
6
7 import org.springframework.dao.DataAccessException;
8
9 /**
10  * Central business interface for the image database.
11  *
12  * @author Juergen Hoeller
13  * @since 08.01.2004
14  */

15 public interface ImageDatabase {
16
17     List JavaDoc getImages() throws DataAccessException;
18
19     void streamImage(String JavaDoc name, OutputStream JavaDoc os) throws DataAccessException;
20
21     void storeImage(String JavaDoc name, InputStream JavaDoc is, int contentLength, String JavaDoc description)
22             throws DataAccessException;
23
24     void checkImages() throws DataAccessException;
25
26     void clearDatabase() throws DataAccessException;
27
28 }
29
Popular Tags