Class ArmoredOutputStream
- Namespace
- Org.BouncyCastle.Bcpg
- Assembly
- BouncyCastle.Cryptography.dll
public class ArmoredOutputStream : BaseOutputStream, IAsyncDisposable, IDisposable
- Inheritance
-
ArmoredOutputStream
- Implements
- Inherited Members
Constructors
ArmoredOutputStream(Stream)
public ArmoredOutputStream(Stream outStream)
Parameters
outStreamStream
ArmoredOutputStream(Stream, bool)
public ArmoredOutputStream(Stream outStream, bool addVersionHeader)
Parameters
ArmoredOutputStream(Stream, IDictionary<string, string>)
public ArmoredOutputStream(Stream outStream, IDictionary<string, string> headers)
Parameters
outStreamStreamheadersIDictionary<string, string>
ArmoredOutputStream(Stream, IDictionary<string, string>, bool)
public ArmoredOutputStream(Stream outStream, IDictionary<string, string> headers, bool addVersionHeader)
Parameters
outStreamStreamheadersIDictionary<string, string>addVersionHeaderbool
Fields
HeaderVersion
public static readonly string HeaderVersion
Field Value
Methods
AddHeader(string, string)
public void AddHeader(string name, string val)
Parameters
BeginClearText(HashAlgorithmTag)
public void BeginClearText(HashAlgorithmTag hashAlgorithm)
Parameters
hashAlgorithmHashAlgorithmTag
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposingbool
EndClearText()
public void EndClearText()
ResetHeaders()
public void ResetHeaders()
SetHeader(string, string)
public void SetHeader(string name, string val)
Parameters
WriteByte(byte)
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
public override void WriteByte(byte value)
Parameters
valuebyteThe byte to write to the stream.
Exceptions
- IOException
An I/O error occurs.
- NotSupportedException
The stream does not support writing, or the stream is already closed.
- ObjectDisposedException
Methods were called after the stream was closed.