/** * Save the content. The default saves the asString() value to the output stream * * @param out output stream * @throws IOException */ public void save(OutputStream out) throws IOException { IOUtils.write(asString(), out, Charsets.UTF_8); }
PublishedExportsOutputter.createOutputter(configFormat, published); boolean print = registryArgs.out == null; outputter.save(destFile); } else { print(outputter.asString());
public void save(File dest) throws IOException { FileOutputStream out = null; try { out = new FileOutputStream(dest); save(out); out.close(); } finally { org.apache.hadoop.io.IOUtils.closeStream(out); } }
PublishedExportsOutputter.createOutputter(configFormat, published); boolean print = registryArgs.out == null; outputter.save(destFile); } else { print(outputter.asString());
public void save(File dest) throws IOException { FileOutputStream out = null; try { out = new FileOutputStream(dest); save(out); out.close(); } finally { org.apache.hadoop.io.IOUtils.closeStream(out); } }
/** * Save the content. The default saves the asString() value to the output stream * * @param out output stream * @throws IOException */ public void save(OutputStream out) throws IOException { IOUtils.write(asString(), out, Charsets.UTF_8); }