C# Class Org.BouncyCastle.Bcpg.BcpgOutputStream

Basic output stream.
Inheritance: Org.BouncyCastle.Utilities.IO.BaseOutputStream, IBcpgOutputStream
Afficher le fichier Open project: nonorganic/dssnet Class Usage Examples

Méthodes publiques

Méthode Description
BcpgOutputStream ( Stream outStr ) : System

Create a stream representing a general packet.

BcpgOutputStream ( Stream outStr, PacketTag tag ) : System

Create a stream representing an old style partial object.

BcpgOutputStream ( Stream outStr, PacketTag tag, byte buffer ) : System

Create a new style partial input stream buffered into chunks.

BcpgOutputStream ( Stream outStr, PacketTag tag, long length ) : System

Create a new style partial input stream buffered into chunks.

BcpgOutputStream ( Stream outStr, PacketTag tag, long length, bool oldFormat ) : System

Create a stream representing a general packet.

Close ( ) : void
Finish ( ) : void

Finish writing out the current packet without closing the underlying stream.

Flush ( ) : void

Flush the underlying stream.

Write ( byte buffer, int offset, int count ) : void
WriteByte ( byte value ) : void
WriteObject ( BcpgObject bcpgObject ) : void
WriteObjects ( ) : void
WritePacket ( ContainedPacket p ) : void

Private Methods

Méthode Description
PartialFlush ( bool isLast ) : void
Wrap ( Stream outStr ) : BcpgOutputStream
WriteHeader ( PacketTag tag, bool oldPackets, bool partial, long bodyLen ) : void
WriteInt ( int n ) : void
WriteLong ( long n ) : void
WriteNewPacketLength ( long bodyLen ) : void
WritePacket ( PacketTag tag, byte body, bool oldFormat ) : void
WritePartial ( byte b ) : void
WritePartial ( byte buffer, int off, int len ) : void
WriteShort ( short n ) : void

Method Details

BcpgOutputStream() public méthode

Create a stream representing a general packet.
public BcpgOutputStream ( Stream outStr ) : System
outStr Stream Output stream to write to.
Résultat System

BcpgOutputStream() public méthode

Create a stream representing an old style partial object.
public BcpgOutputStream ( Stream outStr, PacketTag tag ) : System
outStr Stream Output stream to write to.
tag PacketTag The packet tag for the object.
Résultat System

BcpgOutputStream() public méthode

Create a new style partial input stream buffered into chunks.
public BcpgOutputStream ( Stream outStr, PacketTag tag, byte buffer ) : System
outStr Stream Output stream to write to.
tag PacketTag Packet tag.
buffer byte Buffer to use for collecting chunks.
Résultat System

BcpgOutputStream() public méthode

Create a new style partial input stream buffered into chunks.
public BcpgOutputStream ( Stream outStr, PacketTag tag, long length ) : System
outStr Stream Output stream to write to.
tag PacketTag Packet tag.
length long Size of chunks making up the packet.
Résultat System

BcpgOutputStream() public méthode

Create a stream representing a general packet.
public BcpgOutputStream ( Stream outStr, PacketTag tag, long length, bool oldFormat ) : System
outStr Stream Output stream to write to.
tag PacketTag Packet tag.
length long Size of chunks making up the packet.
oldFormat bool If true, the header is written out in old format.
Résultat System

Close() public méthode

public Close ( ) : void
Résultat void

Finish() public méthode

Finish writing out the current packet without closing the underlying stream.
public Finish ( ) : void
Résultat void

Flush() public méthode

Flush the underlying stream.
public Flush ( ) : void
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void

WriteByte() public méthode

public WriteByte ( byte value ) : void
value byte
Résultat void

WriteObject() public méthode

public WriteObject ( BcpgObject bcpgObject ) : void
bcpgObject BcpgObject
Résultat void

WriteObjects() public méthode

public WriteObjects ( ) : void
Résultat void

WritePacket() public méthode

public WritePacket ( ContainedPacket p ) : void
p ContainedPacket
Résultat void