| Crates.io | jclass |
| lib.rs | jclass |
| version | 0.1.7 |
| created_at | 2025-05-05 09:21:13.833388+00 |
| updated_at | 2025-05-28 08:37:09.092685+00 |
| description | a simple lib for java class file parse or edit |
| homepage | |
| repository | https://github.com/JavaGuard/jclass |
| max_upload_size | |
| id | 1660412 |
| size | 125,571 |
a simple lib for java class file parse or edit
// parse
let content = File::open(file_path).unwrap();
let class_info = JClassInfo::from_reader(&mut content.into());
// to bytes
let mut bytes = Vec::new();
{
let mut writer = BufWriter::new( & mut bytes).into();
info.write_to( & mut writer).unwrap();
}