Crate jars

source ·
Expand description

jars is a simple utility library allows users to extract jar files on file system based on given extraction rules.

Usage

import jars::{jar, JarOptionBuilder};
 
let jar = jars::jar("sample/rt.jar", JarOptionBuilder::default())?;
 
for (file_path, content) in jar.files {
// ...
}

Structs

  • Simple Jar data representation stores files with a single HashMap, key of files are full qualified path while entry of files are read data in vector of u8.
  • An option that indicates the extraction behaviour used in jar.
  • A simple option builder for JarOption to build in a easy way.

Functions