Here you can find the source of writeTagset(Path outPath, Set
public static void writeTagset(Path outPath, Set<String> tagset)
//package com.java2s; //License from project: Apache License import java.io.IOException; import java.io.UncheckedIOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.Set; public class Main { public static void writeTagset(Path outPath, Set<String> tagset) { try {/*from ww w. j a v a2 s.c o m*/ Files.write(outPath, tagset); } catch (IOException e) { throw new UncheckedIOException(e); } } }