Table of Contents

Class CompoundFile

Namespace
DocWright.Formats.Doc.Cfb
Assembly
DocWright.Formats.Doc.dll

Reads OLE Compound File Binary (CFB, [MS-CFB]) containers and exposes named streams.

public sealed class CompoundFile : IDisposable
Inheritance
CompoundFile
Implements
Inherited Members

Remarks

This is the name Phase 9 published and it stays supported. The parser itself moved to CompoundFile in Phase 25, because three unrelated consumers need it — the .doc reader, DocWright.Cryptography's encrypted packages, and OLE payload extraction — and they live in packages that must not reference one another. Every member here delegates; there is exactly one implementation.

New code should prefer CompoundFile directly.

Properties

StreamNames

Gets the stream names in ordinal directory order.

Methods

ContainsStream(string)

Determines whether a stream with the given name exists.

Dispose()

Releases the container and any spill stream it owns.

Open(Stream, Stream?)

Opens a compound file over a seekable stream.

OpenStream(string)

Opens a named stream.

TryOpenStream(string, out Stream?)

Opens a named stream when it exists.