/** * Sets the destination file. * * @param outputFile the destination file. * @throws IOException throws an IOException if file cannot be set */ @Override public void setFile(File outputFile) throws IOException { if (outputFile.getAbsolutePath().endsWith( JSONLoader.FILE_EXTENSION_COMPRESSED)) { setCompressOutput(true); } super.setFile(outputFile); }
/** * Sets the destination file. * * @param outputFile the destination file. * @throws IOException throws an IOException if file cannot be set */ @Override public void setFile(File outputFile) throws IOException { if (outputFile.getAbsolutePath().endsWith( JSONLoader.FILE_EXTENSION_COMPRESSED)) { setCompressOutput(true); } super.setFile(outputFile); }
setCompressOutput(Utils.getFlag("compress", options));
setCompressOutput(Utils.getFlag("compress", options));