public TempFile(File tempFile, PJsonObject jsonSpec, OutputFormat format) { super(tempFile.getAbsolutePath()); creationTime = System.currentTimeMillis(); this.outputFileName = jsonSpec.optString(Constants.OUTPUT_FILENAME_KEY); this.printedLayoutName = jsonSpec.optString(Constants.JSON_LAYOUT_KEY, null); this.suffix = format.getFileSuffix(); this.contentType = format.getContentType(); }