* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / ICSharpCode.SharpZipLib / ICSharpCode.SharpZipLib / BZip2 / BZip2.cs
index fc24db04701858637afdf93a741334dc1417d4d6..7a6669e87bf12e33e939ab3ed2efd81ec2029208 100644 (file)
@@ -1,4 +1,5 @@
 // BZip2.cs\r
+//\r
 // Copyright (C) 2001 Mike Krueger\r
 //\r
 // This program is free software; you can redistribute it and/or\r
@@ -35,7 +36,7 @@
 using System;\r
 using System.IO;\r
 \r
-namespace ICSharpCode.SharpZipLib.BZip2 \r
+namespace ICSharpCode.SharpZipLib.BZip2\r
 {\r
        \r
        /// <summary>\r
@@ -45,6 +46,10 @@ namespace ICSharpCode.SharpZipLib.BZip2
        /// </summary>\r
        public sealed class BZip2\r
        {\r
+               /// <summary>\r
+               /// Decompress <paramref name="instream">input</paramref> writing \r
+               /// decompressed data to <paramref name="outstream">output stream</paramref>\r
+               /// </summary>\r
                public static void Decompress(Stream instream, Stream outstream) \r
                {\r
                        System.IO.Stream bos = outstream;\r
@@ -58,13 +63,17 @@ namespace ICSharpCode.SharpZipLib.BZip2
                        bos.Flush();\r
                }\r
                \r
+               /// <summary>\r
+               /// Compress <paramref name="instream">input stream</paramref> sending \r
+               /// result to <paramref name="outputstream">output stream</paramref>\r
+               /// </summary>\r
                public static void Compress(Stream instream, Stream outstream, int blockSize) \r
                {                       \r
                        System.IO.Stream bos = outstream;\r
                        System.IO.Stream bis = instream;\r
                        int ch = bis.ReadByte();\r
                        BZip2OutputStream bzos = new BZip2OutputStream(bos, blockSize);\r
-                       while(ch != -1) {\r
+                       while (ch != -1) {\r
                                bzos.WriteByte((byte)ch);\r
                                ch = bis.ReadByte();\r
                        }\r
@@ -73,6 +82,7 @@ namespace ICSharpCode.SharpZipLib.BZip2
                }\r
        }\r
 }\r
+\r
 /* derived from a file which contained this license :\r
  * Copyright (c) 1999-2001 Keiron Liddle, Aftex Software\r
  *\r