APISonar


com.google.common.io.Files.newOutputStreamSupplier

> com > google > common > io > Files > newOutputStreamSupplier
com APIs google APIs common APIs io APIs Files APIs newOutputStreamSupplier APIs

Example 1
public void close() throws IOException
  {
    writer.close();

    final File outFile = IndexIO.makeMetricFile(outDir, metricName, IndexIO.BYTE_ORDER);
    outFile.delete();
    MetricHolder.writeComplexMetric(
        Files.newOutputStreamSupplier(outFile, true), metricName, serde.getTypeName(), writer
    );
    IndexIO.checkFileSize(outFile);

    writer = null;
  }