Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gson gson = new GsonBuilder().create();
- PAKCRestServiceTO simulationInstanceTO = gson.fromJson(PAKCRestServiceJSON, PAKCRestServiceTO.class);
- FileUtils.writeByteArrayToFile(new File("PAK/input.cfg"), simulationInstanceTO.getCfgFile());
- SolverMessageTO solverMonitor = new SolverMessageTO();
- File pakcPakDat = new File("Pak.dat");
- File pakcPakUnv = new File("Pak.unv");
- //Cad execution...
- byte[] pakcPakDatByteArr = org.apache.commons.io.FileUtils.readFileToByteArray(pakcPakDat);
- byte[] pakcPakUnvByteArr = org.apache.commons.io.FileUtils.readFileToByteArray(pakcPakUnv);
- simulationInstanceTO.setDatFile(pakcPakDatByteArr);
- simulationInstanceTO.setUnvFile(pakcPakUnvByteArr);
- String JSONReturn = Util.getJsonStrFromObject(simulationInstanceTO);
- return JSONReturn;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement