Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewWriter (0.2 sec)

  1. guava-tests/test/com/google/common/io/FilesTest.java

      public void testNewWriter() throws IOException {
        File temp = createTempFile();
        assertThrows(NullPointerException.class, () -> Files.newWriter(temp, null));
    
        assertThrows(NullPointerException.class, () -> Files.newWriter(null, Charsets.UTF_8));
    
        BufferedWriter w = Files.newWriter(temp, Charsets.UTF_8);
        try {
          w.write(I18N);
        } finally {
          w.close();
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesTest.java

      public void testNewWriter() throws IOException {
        File temp = createTempFile();
        assertThrows(NullPointerException.class, () -> Files.newWriter(temp, null));
    
        assertThrows(NullPointerException.class, () -> Files.newWriter(null, Charsets.UTF_8));
    
        BufferedWriter w = Files.newWriter(temp, Charsets.UTF_8);
        try {
          w.write(I18N);
        } finally {
          w.close();
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
Back to top