summary refs log tree commit diff
path: root/crypto/test/src/util/test/UncloseableStream.cs
blob: 171198120cf226e25ee892162ca43fa0458023be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.IO;

using Org.BouncyCastle.Utilities.IO;

namespace Org.BouncyCastle.Utilities.Test
{
	public class UncloseableStream
		: FilterStream
	{
		public UncloseableStream(
			Stream s)
			: base(s)
		{
		}

		public override void Close()
		{
			throw new Exception("Close() called on UncloseableStream");
		}
	}
}