Sharpen.InputStream.Close C# (CSharp) Method

Close() public method

public Close ( ) : void
return void
		public virtual void Close ()
		{
			if (Wrapped != null) {
				Wrapped.Close ();
			}
		}

Usage Example

 /// <exception cref="System.IO.IOException"></exception>
 public static void CopyStream(InputStream @is, OutputStream os)
 {
     int n;
     byte[] buffer = new byte[16384];
     while ((n = @is.Read(buffer)) > -1)
     {
         os.Write(buffer, 0, n);
     }
     os.Close();
     @is.Close();
 }
All Usage Examples Of Sharpen.InputStream::Close