// BZip2.cs\r
+//\r
// Copyright (C) 2001 Mike Krueger\r
//\r
// This program is free software; you can redistribute it and/or\r
using System;\r
using System.IO;\r
\r
-namespace ICSharpCode.SharpZipLib.BZip2 \r
+namespace ICSharpCode.SharpZipLib.BZip2\r
{\r
\r
/// <summary>\r
/// </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
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
}\r
}\r
}\r
+\r
/* derived from a file which contained this license :\r
* Copyright (c) 1999-2001 Keiron Liddle, Aftex Software\r
*\r