我正在尝试使用Java7中的新Files.newBufferedWriter,但我无法使用示例:我想创建一个新文件(如果它不存在)或覆盖它(如果它存在)。我做的是:OpenOption[]options={StandardOpenOption.CREATE_NEW,StandardOpenOption.WRITE,StandardOpenOption.TRUNCATE_EXISTING};BufferedWriterwriter=Files.newBufferedWriter(Paths.get("example.txt"),StandardCharsets.UTF_8,options