Initial Commit
This commit is contained in:
25
iTechSharp/srcbc/openpgp/WrappedGeneratorStream.cs
Normal file
25
iTechSharp/srcbc/openpgp/WrappedGeneratorStream.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.IO;
|
||||
|
||||
using Org.BouncyCastle.Asn1.Utilities;
|
||||
|
||||
namespace Org.BouncyCastle.Bcpg.OpenPgp
|
||||
{
|
||||
public class WrappedGeneratorStream
|
||||
: FilterStream
|
||||
{
|
||||
private readonly IStreamGenerator gen;
|
||||
|
||||
public WrappedGeneratorStream(
|
||||
IStreamGenerator gen,
|
||||
Stream str)
|
||||
: base(str)
|
||||
{
|
||||
this.gen = gen;
|
||||
}
|
||||
|
||||
public override void Close()
|
||||
{
|
||||
gen.Close();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user