Code example for MessageDigest

Methods: update

0
		} 
 
		@Override 
		public void write(byte[] buffer, int offset, int count) throws IOException {
			super.write(buffer, offset, count);
			mMD5.update(buffer, offset, count);
		} 
 
		@Override 
		public void write(byte[] buffer) throws IOException {
			super.write(buffer);
			mMD5.update(buffer);
		} 
		 
		public String getMD5() {
		    return md5ToString(digest).toString();
		} 
	} 
}