blob: 72b006dc96a3e1b105ff887ab4c4f9d3df653fa6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
using System.IO;
namespace Org.BouncyCastle.Utilities.IO.Compression
{
using Impl = Utilities.Bzip2;
internal static class Bzip2
{
internal static Stream CompressOutput(Stream stream, bool leaveOpen = false)
{
return leaveOpen
? new Impl.CBZip2OutputStreamLeaveOpen(stream)
: new Impl.CBZip2OutputStream(stream);
}
internal static Stream DecompressInput(Stream stream)
{
return new Impl.CBZip2InputStream(stream);
}
}
}
|