Code example for MessageDigest

Methods: digest

0
 
		@Override 
		public void close() throws IOException { 
			super.close(); 
			if (digest == null) {
				digest = mMD5.digest();
			} 
		} 
 
		@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);
		}