CfbReader
Vue de l’ensemble
‘CfbReader’ est une classe dans Aspose.Email FOSS pour .NET. hérite de: ‘IDisposable’.
CfbReader.CfdReade crée un lecteur à partir d’une array de byte contenant un conteneur CFB.
Description
‘CfbReader’ est une classe dans la bibliothèque Aspose.Email FOSS pour .NET qui expose 11 méthodes et 13 propriétés pour l’utilisation programmatique.
La classe fournit également la propriété de «Header» (c’est-à-dire l’information du fichier cfb), la «Difat» propriétés (contient les indices du secteur de la difat en tant que collection uniquement lisible), le «DirectoryEntries» propiété (liste de tous les entrées dans le conteneur).
Les instances sont créées à travers un constructeur unique qui initialisera l’objet avec des valeurs par défaut.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
Header | Header | Read | Provides the CFB file header information |
Difat | ReadOnlyCollection<uint> | Read | Contains the DIFAT sector indices as a read‑only collection |
Fat | ReadOnlyCollection<uint> | Read | |
MiniFat | ReadOnlyCollection<uint> | Read | |
DirectoryEntries | ReadOnlyCollection<DirectoryEntry> | Read | Lists all directory entries in the container |
RootEntry | DirectoryEntry | Read | Represents the root storage directory entry |
MiniStream | byte[] | Read | Holds the raw bytes of the mini‑stream |
MajorVersion | int | Read | Indicates the major version number of the CFB format |
SectorSize | int | Read | Returns the size in bytes of a standard sector |
MiniSectorSize | int | Read | Returns the size in bytes of a mini sector |
DirectoryEntryCount | int | Read | Reports the total number of directory entries |
MaterializedStreamCount | int | Read | Reports how many streams have been materialized |
FileSize | int | Read | Gives the total size in bytes of the CFB file |
méthodes
| Signature | Description |
|---|---|
CfbReader(data: byte[]) | Creates a reader from a byte array containing a CFB container |
FromFile(path: string) | Loads a CFB container from the specified file path |
FromStream(stream: Stream) | Loads a CFB container from the provided Stream |
Dispose() | Releases all resources used by the reader |
GetEntry(streamId: uint) | Returns the directory entry for the given stream identifier |
GetStreamData(streamId: uint) | Reads the raw byte data of the specified stream |
IterStorages() | Enumerates all storage entries in the CFB |
IterStreams() | Enumerates all stream entries in the CFB |
IterChildren(storageStreamId: uint) | Enumerates child entries of the given storage stream |
IterTree(startStreamId: uint) | Walks the directory tree starting at the given stream ID |
FindChildByName(storageStreamId: uint, name: string) | Finds a child entry by name within a storage |
ResolvePath(names: IEnumerable<string>, startStreamId: uint) | Resolves a sequence of names to a stream ID starting from a base |
Voir aussi
- Aspose.Email pour .NET — Enterprise API Reference