replace deprecated API

This commit is contained in:
2017-09-24 17:00:08 +02:00
parent 4b53baacae
commit dc8262c37e

View File

@@ -33,7 +33,8 @@ public class Gnuplot {
LOGGER.debug(gnuplotFileContent); LOGGER.debug(gnuplotFileContent);
final File gnuplotFile = File.createTempFile("gnuplot", ".dem", tmpDirectory.toFile()); final File gnuplotFile = File.createTempFile("gnuplot", ".dem", tmpDirectory.toFile());
Files.write(gnuplotFileContent, gnuplotFile, StandardCharsets.UTF_8); //Files.write(gnuplotFileContent, gnuplotFile, StandardCharsets.UTF_8);
Files.asCharSink(gnuplotFile, StandardCharsets.UTF_8).write(gnuplotFileContent);
final long start = System.nanoTime(); final long start = System.nanoTime();