122
|
1 /* DocuInfo -- General image information interface
|
|
2
|
|
3 Digital Image Library servlet components
|
|
4
|
|
5 Copyright (C) 2003 Robert Casties (robcast@mail.berlios.de)
|
|
6
|
|
7 This program is free software; you can redistribute it and/or modify it
|
|
8 under the terms of the GNU General Public License as published by the
|
|
9 Free Software Foundation; either version 2 of the License, or (at your
|
|
10 option) any later version.
|
|
11
|
|
12 Please read license.txt for the full details. A copy of the GPL
|
|
13 may be found at http://www.gnu.org/copyleft/lgpl.html
|
|
14
|
|
15 You should have received a copy of the GNU General Public License
|
|
16 along with this program; if not, write to the Free Software
|
|
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
18
|
|
19 */
|
|
20
|
|
21 package digilib.image;
|
|
22
|
|
23 import java.io.IOException;
|
|
24
|
159
|
25 import digilib.io.ImageFile;
|
122
|
26
|
|
27 /**
|
|
28 * @author casties
|
|
29 *
|
|
30 */
|
|
31 public interface DocuInfo {
|
|
32
|
159
|
33 /** Checks the size and type of the ImageFile f.
|
122
|
34 *
|
159
|
35 * The image size and type of the ImageFile f is determined and stored in
|
|
36 * the ImageFile object. Returns true if successfull.
|
122
|
37 *
|
159
|
38 * @param f ImageFile to be checked.
|
122
|
39 * @return boolean true if check was successfull.
|
|
40 * @throws FileOpException Exception thrown on error.
|
|
41 */
|
159
|
42 public boolean checkFile(ImageFile f) throws IOException;
|
122
|
43
|
|
44 }
|