Table of Contents

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

outStream Stream

ArmoredOutputStream(Stream, bool)

public ArmoredOutputStream(Stream outStream, bool addVersionHeader)

Parameters

outStream Stream
addVersionHeader bool

ArmoredOutputStream(Stream, IDictionary<string, string>)

public ArmoredOutputStream(Stream outStream, IDictionary<string, string> headers)

Parameters

outStream Stream
headers IDictionary<string, string>

ArmoredOutputStream(Stream, IDictionary<string, string>, bool)

public ArmoredOutputStream(Stream outStream, IDictionary<string, string> headers, bool addVersionHeader)

Parameters

outStream Stream
headers IDictionary<string, string>
addVersionHeader bool

Fields

HeaderVersion

public static readonly string HeaderVersion

Field Value

string

Methods

AddHeader(string, string)

public void AddHeader(string name, string val)

Parameters

name string
val string

BeginClearText(HashAlgorithmTag)

public void BeginClearText(HashAlgorithmTag hashAlgorithm)

Parameters

hashAlgorithm HashAlgorithmTag

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

EndClearText()

public void EndClearText()

ResetHeaders()

public void ResetHeaders()

SetHeader(string, string)

public void SetHeader(string name, string val)

Parameters

name string
val string

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

value byte

The 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.