Struct zifu::InputZIPArchive[][src]

pub struct InputZIPArchive<F: ReadBytesExt + Seek> { /* fields omitted */ }
Expand description

This struct is for providing the internal processing API used in the zifu CLI.

This helps you to create e.g. GUI version

This is initialized by ::new() method.

Implementations

Returns an initialized instance.

Arguments

  • handler - File handler representing the input ZIP file (Bufreader<File> recommended)

Returns the file name encoding diagnossis.

For details, see the description for FileNamesDiagnosis.

Test applying given decoders to the file names and returns the index of the first successful one.

If nothing is successful for all names, returns None.

Arguments

  • decoders_list - list of decoders; the former the higher priority.

Returns a list of file names (including whether they are explicitly encoded in UTF-8).

Arguments

  • legacy_decoder - used for implicitly-encoded file names.

Changes encoding of file names in central directories in ZIP archive

This affects only on .cd_entries; The contents of the original ZIP file will not be overwritten.

Arguments

  • legacy_decoder: decoder for file names with implicit encoding

Outputs the ZIP archive to the given handler.

File names in local file headers will be ignored. That in central directories are used instead.

Arguments

  • dest_handler - The file handler representing for the output file.

Returns Err(ZipReadError) if the archive has unsupported features (e.g. central directory encryption)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.