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
- An option that indicates the extraction behaviour used in jar.
- A simple option builder for JarOption to build in a easy way.
Functions
- 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.