Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for newOutputStream (0.15 seconds)

  1. src/main/java/org/codelibs/fess/job/IndexExportJob.java

                    return;
                }
                final byte[] bytes = content.getBytes(StandardCharsets.UTF_8);
                try (OutputStream out = Files.newOutputStream(filePath, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING,
                        LinkOption.NOFOLLOW_LINKS)) {
                    out.write(bytes);
                }
            } catch (final IOException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/io/ByteSourceTest.java

          assertThrows(IOException.class, () -> okSource.copyTo(new TestByteSink(option)));
          // ensure stream was closed IF it was opened (depends on implementation whether or not it's
          // opened at all if sink.newOutputStream() throws).
          assertTrue(
              "stream not closed when copying to sink with option: " + option,
              !okSource.wasStreamOpened() || okSource.wasStreamClosed());
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

          assertThrows(IOException.class, () -> okSource.copyTo(new TestByteSink(option)));
          // ensure stream was closed IF it was opened (depends on implementation whether or not it's
          // opened at all if sink.newOutputStream() throws).
          assertTrue(
              "stream not closed when copying to sink with option: " + option,
              !okSource.wasStreamOpened() || okSource.wasStreamClosed());
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
Back to Top