~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to contrib/Sharpen/Sharpen/DeflaterOutputStream.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
namespace Sharpen
 
2
{
 
3
        using ICSharpCode.SharpZipLib.Zip.Compression;
 
4
        using ICSharpCode.SharpZipLib.Zip.Compression.Streams;
 
5
        using System;
 
6
 
 
7
        internal class DeflaterOutputStream : OutputStream
 
8
        {
 
9
                public DeflaterOutputStream (OutputStream s)
 
10
                {
 
11
                        base.Wrapped = new ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream (s.GetWrappedStream ());
 
12
                }
 
13
 
 
14
                public DeflaterOutputStream (OutputStream s, Deflater d)
 
15
                {
 
16
                        base.Wrapped = new ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream (s.GetWrappedStream (), d);
 
17
                }
 
18
 
 
19
                public void Finish ()
 
20
                {
 
21
                        ((ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream)base.Wrapped).Finish ();
 
22
                }
 
23
        }
 
24
}