common/src/main/java/HTTPClient/MD5InputStream.java
/**
     * Close the stream and check the digest. If the stream has not been
     * fully read then the rest of the data will first be read (and discarded)
     * to complete the digest calculation.
     *
     * @exception IOException if the close()'ing the underlying stream throws
     *                        an IOException, or if the expected digest and
     *                        the calculated digest don't match.
     */
Close the stream and check the digest. If the stream has not been
fully read then the rest of the data will first be read (and discarded)
to complete the digest calculation.

@exception IOException if the close()'ing the underlying stream throws
an IOException, or if the expected digest and
the calculated digest don't match.
Close the stream and check the digest . If the stream has not been fully read then the rest of the data will first be read ( and discarded ) to complete the digest calculation . @exception IOException if the close () ' ing the underlying stream throws an IOException or if the expected digest and the calculated digest don ' t match .
public synchronized void close()  throws IOException
    {
	while (skip(10000) > 0) ;
	real_close();
    }
public synchronized void close ( ) throws IOException { while ( skip ( 10000 ) > 0 ) ; real_close ( ) ; }
Close the stream and check the digest.
Close the stream and check the digest .