Code example for Path

Methods: resolve

0
    assertReadText(autoOutFile("TXT")); 
    assertReadText(autoOutFile("TEXT")); 
  } 
   
  private Path rawTextFile(String ext) throws Exception {
    Path f = testDir.resolve("testfile." +  ext);
    BufferedWriter w = Files.newBufferedWriter(f, StandardCharsets.UTF_8);
    w.write(TEXT);
    w.newLine();
    w.close();
    return f;
  } 
   
  private Path rawGzipFile(String ext) throws Exception {
    Path f = testDir.resolve("testfile." +  ext);
    OutputStream os = new CompressorStreamFactory().createCompressorOutputStream(CompressorStreamFactory.GZIP, Files.newOutputStream(f));
    writeText(os);
    return f;
  }