Mercurial > hg > digilib-old
comparison servlet/src/digilib/io/DocuFile.java @ 130:c36944be0b58
Servlet Version 1.11a1with original size(!)
- new meta data file loader
- new parameter ddpi, ddpix, ddpiy (client->servlet)
- new parameter mo=osize
- osize scales based on ddpi and original dpi (currently only equally for x and y)
author | robcast |
---|---|
date | Wed, 02 Jul 2003 00:02:18 +0200 |
parents | a32e8c80e2f2 |
children | 04ad64b2137a |
comparison
equal
deleted
inserted
replaced
129:ed7c1e4dd177 | 130:c36944be0b58 |
---|---|
45 | 45 |
46 public DocuFile(File f) { | 46 public DocuFile(File f) { |
47 file = f; | 47 file = f; |
48 } | 48 } |
49 | 49 |
50 /** Returns the file name (without path). | |
51 * | |
52 * @return | |
53 */ | |
50 public String getName() { | 54 public String getName() { |
51 if (file != null) { | 55 if (file != null) { |
52 return file.getName(); | 56 return file.getName(); |
53 } | 57 } |
54 return null; | 58 return null; |
55 } | 59 } |
56 | 60 |
57 | 61 |
62 /** Checks the file using the provided DocuInfo instance. | |
63 * | |
64 * @param info | |
65 */ | |
58 public void check(DocuInfo info) { | 66 public void check(DocuInfo info) { |
59 try { | 67 try { |
60 info.checkFile(this); | 68 info.checkFile(this); |
61 } catch (IOException e) { | 69 } catch (IOException e) { |
62 checked = false; | 70 checked = false; |