Code example for MessageDigest

Methods: reset

0
		 
		public RandomAccessFileMD5OutputStream(File file) throws FileNotFoundException {
			super(file);
			try { 
				mMD5 = MessageDigest.getInstance("MD5");
				mMD5.reset();
			} catch (NoSuchAlgorithmException e) {
				Log.w(TAG, e);
			}	 
		} 
		 
		@Override 
		public void write(int oneByte) throws IOException {
			super.write(oneByte);
			mMD5.update(new Integer(oneByte).byteValue());
		} 
 
		@Override 
		public void close() throws IOException { 
			super.close(); 
			if (digest == null) {