CFBReader
Overview
CFBReader เป็นคลาสใน Aspose.Email FOSS สําหรับ Python.
เครื่องอ่านที่สามารถใช้ได้หลายครั้ง สําหรับคอนเทนเนอร์ Compound File Binary (CFB).
หมวดนี้ให้ 11 วิธีในการทํางานกับวัตถุ CFBReader ในโปรแกรม Python. วิธีการที่ใช้ได้แก่: __init__, close, find_child_by_name, from_file, get_entry, get_stream_data, iter_children, iter_storages, iter_streams, iter_tree, resolve_path. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Python ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Python. คุณสมบัติ: DIRECTORY_ENTRY_LAYOUT, HEADER_LAYOUT, data_size, difat, directory_entries, directory_entry_count,และอีก 12 คน.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
data_size | int | Read | ได้ข้อมูลขนาด. |
major_version | int | Read | ได้รับการฉบับใหญ่. |
sector_size | int | Read | ได้ขนาดภาค. |
mini_sector_size | int | Read | ได้ขนาดของภาคเล็กๆ. |
fat_sector_count | int | Read | ได้รับการนับภาคไขมัน. |
directory_entry_count | int | Read | ได้ข้อมูลรายการในไดเรคทอรี่. |
materialized_stream_count | int | Read | ได้รับการนับสตรีมที่เกิดขึ้น. |
file_size | int | Read | ได้ขนาดไฟล์. |
HEADER_LAYOUT | Dict[str, Tuple[int, int]] | Read | ได้รับการวางแผนหัวข้อ. |
DIRECTORY_ENTRY_LAYOUT | Dict[str, Tuple[int, int]] | Read | ได้ข้อมูลการเข้าประวัติ. |
header | `` | Read | ได้หัวข้อ. |
difat | List[SectorNumber] | Read | ได้รับการปั่น. |
fat | List[int] | Read | ได้รับไขมัน. |
mini_fat | List[int] | Read | ได้รับไขมันเล็กๆ. |
directory_entries | `` | Read | ได้ข้อมูลในรายการ. |
root_entry | `` | Read | ได้รูทอินเตอร์. |
mini_stream | `` | Read | ได้รับกระแสไฟฟ้าเล็กๆ. |
stream_data | Dict[StreamId, bytes] | Read | ได้ข้อมูลสตรีมมา. |
Methods
| Signature | Description |
|---|---|
| `init(data: bytes | mmap.mmap, _mmap_owner: mmap.mmap |
| `from_file(path: Path | str)→“CFBReader”` |
close() | ปล่อยทรัพยากรใด ๆ ที่เกี่ยวข้องกับไฟล์ CFB เปิด |
get_entry(stream_id: StreamId) → DirectoryEntry | ส่งกลับ DirectoryEntry สําหรับตัวจําแนกสตรีมที่ระบุ |
get_stream_data(stream_id: StreamId) → bytes | การคืนไบต์สดของสตรีมที่ระบุโดย stream_id |
iter_storages() → Iterator[DirectoryEntry] | อัตราผล DirectoryEntry ตัวแทนของรายการที่เก็บไว้ในระบบ |
iter_streams() → Iterator[DirectoryEntry] | อัตราผล DirectoryEntry ตัวแทนของรายการที่เข้าสู่กระแส |
iter_children(storage_stream_id: StreamId) → Iterator[DirectoryEntry] | ส่งผลให้เด็ก DirectoryEntry ของการเก็บของที่ได้รับ |
iter_tree(start_stream_id: StreamId) → Iterator[Tuple[int, DirectoryEntry]] | ให้การเดินผ่านต้นไม้ที่ลึกเป็นครั้งแรก (depth, entry) หน่วยทัพเลส. |
find_child_by_name(storage_stream_id: StreamId, name: str) → Optional[DirectoryEntry] | การค้นหารายการเด็กที่มีชื่อที่ให้ไว้ ภายใต้สตอเรจ |
resolve_path(names: Iterable[str], start_stream_id: StreamId) → Optional[DirectoryEntry] | แก้ทางการเก็บ/สตรีมโดยชื่อรายการที่ถูกต้อง. |