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§
- Jar
- 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.
- JarOption
- An option that indicates the extraction behaviour used in jar.
- JarOption
Builder - A simple option builder for JarOption to build in a easy way.
Functions§
- jar
- Extracts a jar file from given parameter
path
. The extraction behaviour is defined by parameteroption
which can build from JarOptionBuilder::default with all defaulted options, or JarOptionBuilder::builder with multiple options provided.