Struct cfb::CompoundFile [] [src]

pub struct CompoundFile<F> { /* fields omitted */ }

A compound file, backed by an underlying reader/writer (such as a File or Cursor).

Methods

impl<F> CompoundFile<F>
[src]

Returns the CFB format version used for this compound file.

Given a path within the compound file, get information about that stream or storage object.

Returns an iterator over the entries within a storage object.

Consumes the CompoundFile, returning the underlying reader/writer.

impl<F: Seek> CompoundFile<F>
[src]

Opens an existing stream in the compound file for reading and/or writing (depending on what the underlying file supports).

impl<F: Read + Seek> CompoundFile<F>
[src]

Opens an existing compound file, using the underlying reader. If the underlying reader also supports the Write trait, then the CompoundFile object will be writable as well.

impl<F: Read + Write + Seek> CompoundFile<F>
[src]

Creates a new compound file with no contents, using the underlying reader/writer. The reader/writer should be initially empty.

Creates a new compound file of the given version with no contents, using the underlying writer. The writer should be initially empty.

Creates a new, empty storage object (i.e. "directory") at the provided path. The parent storage object must already exist.

Creates and returns a new, empty stream object at the provided path. The parent storage object must already exist.

Sets the modified time for the object at the given path to now. Has no effect when called on the root storage.

Flushes all changes to the underlying file.