Parent Directory | Revision Log | Patch
revision 1.8 by benja, Sat Nov 16 04:38:04 2002 UTC | revision 1.9 by benja, Sat Nov 16 05:03:40 2002 UTC | |
---|---|---|
# | Line 50 public abstract class BlockOutputStream | Line 50 public abstract class BlockOutputStream |
50 | ||
51 | protected BlockOutputStream(OutputStream out) { | protected BlockOutputStream(OutputStream out) { |
52 | super(out); | super(out); |
53 | try { | |
54 | this.digest = MessageDigest.getInstance("SHA"); | digest = BlockId.makeMessageDigest(); |
} catch(NoSuchAlgorithmException e) { | ||
throw new Error("Fatal error: The SHA-1 algorithm "+ | ||
"is not supported by this version "+ | ||
"of the Java libraries. "+ | ||
"Storm cannot operate without "+ | ||
"an SHA-1 implementation."); | ||
} | ||
55 | digest.reset(); | digest.reset(); |
56 | } | } |
57 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |