Code example for MessageDigest

Methods: update

0
		} 
		 
		@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) {
				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);
		}