This parser for Java and Android allows your project to save/load Vassal deck files.
File file = new File(path);
InputStream is = new FileInputStream(file);
List<Card> cards = IavdFile.load(is)
File file = new File(path);
OutputStream os = new FileOutputStream(file);
IavdFile.save(os, cards)
Card deploymentCard = IavdFile.getCard(CardSystem.FFG, Affiliation.IMPERIAL, "Darth Vader", true, true, "Lord of the Sith");
Card commandCard = IavdFile.getCard(CardSystem.IACP, "Get Behind Me!");
In order to to build this project you need to clone iavd-dataset in src/main/resources.
cd src/main/resources
git clone https://github.com/valeriodigregorio/iavd-dataset.git .
You can then generate the .jar file (using Maven) and import it in your project as a dependency.