cpio-java

Java code for Parsing CPIO files

Note: Most of this code is NOT mine, the vast majority is from Kaitai Struct, it was just not easy to find the java version because you need to use their online generator for the default cpio ksv file, however I have added: 1) A method for getting the File Name 2) A main method for extraction to output 3) WIP CPIO ACSII new / RPM CPIO parser that can extract files

To extract, build the jar and run: java -jar cpio-java.jar filename.cpio /full/path/to/dir/

Requires Kaitai Struct Java Runtime https://github.com/kaitai-io/kaitai_struct_java_runtime/tree/e34e5a9b4d3e02a323fdbb000b61d0dd0fb9f776, which is in the Maven Pom