Struct sevenz_rust::SevenZWriter
source · pub struct SevenZWriter<W: Write> { /* private fields */ }
Expand description
Writes a 7z file
Implementations§
source§impl SevenZWriter<File>
impl SevenZWriter<File>
source§impl<W: Write + Seek> SevenZWriter<W>
impl<W: Write + Seek> SevenZWriter<W>
sourcepub fn set_content_methods(
&mut self,
content_methods: Arc<Vec<SevenZMethodConfiguration>>
)
pub fn set_content_methods(
&mut self,
content_methods: Arc<Vec<SevenZMethodConfiguration>>
)
Sets the default compression methods to use for entry contents. The default is LZMA2. And currently only support LZMA2
sourcepub fn create_archive_entry(
path: impl AsRef<Path>,
entry_name: String
) -> SevenZArchiveEntry
pub fn create_archive_entry(
path: impl AsRef<Path>,
entry_name: String
) -> SevenZArchiveEntry
Create an archive entry using the file in path
and entry_name provided.
sourcepub fn push_archive_entry<R: Read>(
&mut self,
entry: SevenZArchiveEntry,
reader: Option<R>
) -> Result<(), Error>
pub fn push_archive_entry<R: Read>(
&mut self,
entry: SevenZArchiveEntry,
reader: Option<R>
) -> Result<(), Error>
Adds an archive entry
with data from reader