C# Class CK.Monitoring.LogReaderStreamInfo

Container for an uncompressed log stream and other meta-information.
Afficher le fichier Open project: Invenietis/ck-core Class Usage Examples

Méthodes publiques

Свойство Type Description
HeaderLength int
IsCompressed bool
LogStream Stream
Version int

Méthodes publiques

Méthode Description
OpenStream ( Stream seekableStream ) : LogReaderStreamInfo

Opens a log stream, handling version and compression. On success, its Stream positionned after the header (before the first log entry). Supports headers: - Old version header (05 00 00 00) - CKMOD header (43 4B 4D 4F 4E) followed by version - RFC 1952 GZIP header (1F 8B), will be handled automatically by: a GZip stream reader will be created.

Private Methods

Méthode Description
DoOpenLogStream ( Stream s, bool isInsideGzip ) : LogReaderStreamInfo
LogReaderStreamInfo ( Stream s, bool c, int v, int hLen ) : System

Method Details

OpenStream() public static méthode

Opens a log stream, handling version and compression. On success, its Stream positionned after the header (before the first log entry). Supports headers: - Old version header (05 00 00 00) - CKMOD header (43 4B 4D 4F 4E) followed by version - RFC 1952 GZIP header (1F 8B), will be handled automatically by: a GZip stream reader will be created.
public static OpenStream ( Stream seekableStream ) : LogReaderStreamInfo
seekableStream Stream Log stream to read.
Résultat LogReaderStreamInfo

Property Details

HeaderLength public_oe property

The length of the version header.
public int HeaderLength
Résultat int

IsCompressed public_oe property

Gets a value indicating whether the log stream is contained in a compressed stream. true if the log stream is contained in a compressed stream; otherwise, false.
public bool IsCompressed
Résultat bool

LogStream public_oe property

Gets the log stream: it is opened and uncompressed. Its position is before the version number if Version is equal to -1; otherwise, it is after.
public Stream LogStream
Résultat Stream

Version public_oe property

The version.
public int Version
Résultat int