/// <summary>
        /// Closes this input stream and releases any system resources associated
        /// with the stream. </summary>
        /// <exception cref="IOException"> if an I/O error has occurred </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void close() throws java.io.IOException
        public override void Close()
        {
            if (!Closed)
            {
                if (UsesDefaultInflater)
                {
                    Inf.End();
                }
                @in.Close();
                Closed = true;
            }
        }