Skip to content

Instantly share code, notes, and snippets.

@PhilmacFLy
Created December 17, 2014 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhilmacFLy/19e8c91582b4273b175b to your computer and use it in GitHub Desktop.
Save PhilmacFLy/19e8c91582b4273b175b to your computer and use it in GitHub Desktop.
private static void processReport(String sourceText, String targetText)
throws ResourceException, IOException, BundleWriterException, ContentIOException {
File sourceFile = new File(sourceText);
MasterReport report = (MasterReport) new ResourceManager().createDirectly(sourceFile, MasterReport.class).getResource();
MasterReport processedReport = manipulateReport(report);
BundleWriter.writeReportToZipFile(processedReport, new File(targetText));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment