Parent Directory | Revision Log | Patch
revision 1.2 by tjl, Mon Apr 21 19:33:30 2003 UTC | revision 1.3 by tjl, Mon Apr 21 19:40:08 2003 UTC | |
---|---|---|
# | Line 44 public class StormAlph extends Alph { | Line 44 public class StormAlph extends Alph { |
44 | } | } |
45 | } | } |
46 | ||
47 | protected String addFile_id(java.io.File f, String contentType) | |
48 | throws java.io.IOException { | |
49 | BlockOutputStream os = stormPool.getBlockOutputStream(contentType); | |
50 | org.nongnu.storm.util.CopyUtil.copy( | |
51 | new java.io.FileInputStream(f), | |
52 | os); | |
53 | os.close(); | |
54 | Block b = os.getBlock(); | |
55 | return b.getId().toString(); | |
56 | } | |
57 | ||
58 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |