pub trait ReadZipStreaming<R>where
R: Read,{
// Required method
fn stream_zip_entries_throwing_caution_to_the_wind(
self,
) -> Result<StreamingEntryReader<R>, Error>;
}
Expand description
Allows reading zip entries in a streaming fashion, without seeking, based only on local headers. THIS IS NOT RECOMMENDED, as correctly reading zip files requires reading the central directory (located at the end of the file).
Required Methods§
sourcefn stream_zip_entries_throwing_caution_to_the_wind(
self,
) -> Result<StreamingEntryReader<R>, Error>
fn stream_zip_entries_throwing_caution_to_the_wind( self, ) -> Result<StreamingEntryReader<R>, Error>
Get the first zip entry from the stream as a StreamingEntryReader.
See the trait’s documentation for why using this is generally a bad idea: you might want to use ReadZip or ReadZipWithSize instead.