Initial Commit
This commit is contained in:
26
iTechSharp/srcbc/asn1/LimitedInputStream.cs
Normal file
26
iTechSharp/srcbc/asn1/LimitedInputStream.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.IO;
|
||||
|
||||
using Org.BouncyCastle.Utilities.IO;
|
||||
|
||||
namespace Org.BouncyCastle.Asn1
|
||||
{
|
||||
internal abstract class LimitedInputStream
|
||||
: BaseInputStream
|
||||
{
|
||||
protected readonly Stream _in;
|
||||
|
||||
internal LimitedInputStream(
|
||||
Stream inStream)
|
||||
{
|
||||
this._in = inStream;
|
||||
}
|
||||
|
||||
protected virtual void SetParentEofDetect(bool on)
|
||||
{
|
||||
if (_in is IndefiniteLengthInputStream)
|
||||
{
|
||||
((IndefiniteLengthInputStream)_in).SetEofOn00(on);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user