Beispiel #1
0
 public static void Decompress(Stream instream,Stream outstream)
 {
     System.IO.Stream bos=outstream;
     System.IO.Stream bis=instream;
     BZip2InputStream bzis=new BZip2InputStream(bis);
     int ch=bzis.ReadByte();
     while(ch!=-1) {
         bos.WriteByte((byte)ch);
         ch=bzis.ReadByte();
     }
     bos.Flush();
 }
Beispiel #2
0
        public static void Decompress(Stream instream, Stream outstream)
        {
            System.IO.Stream bos  = outstream;
            System.IO.Stream bis  = instream;
            BZip2InputStream bzis = new BZip2InputStream(bis);
            int ch = bzis.ReadByte();

            while (ch != -1)
            {
                bos.WriteByte((byte)ch);
                ch = bzis.ReadByte();
            }
            bos.Flush();
        }