Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for createTempFile (0.17 sec)

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

                  }
                  Files.deleteIfExists(dir);
                  return FileVisitResult.CONTINUE;
                }
              });
        }
      }
    
      private Path createTempFile() throws IOException {
        return Files.createTempFile(tempDir, "test", ".test");
      }
    
      public void testByteSource_size_ofDirectory() throws IOException {
        try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/FileBackedOutputStream.java

       * so.
       */
      @GuardedBy("this")
      private void update(int len) throws IOException {
        if (memory != null && (memory.getCount() + len > fileThreshold)) {
          File temp = TempFileCreator.INSTANCE.createTempFile("FileBackedOutputStream");
          if (resetOnFinalize) {
            // Finalizers are not guaranteed to be called on system shutdown;
            // this is insurance.
            temp.deleteOnExit();
          }
          try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

      }
    
      @AndroidIncompatible // ClassPath is documented as not supporting Android
    
      public void testScan_classPathCycle() throws IOException {
        File jarFile = File.createTempFile("with_circular_class_path", ".jar");
        try {
          writeSelfReferencingJarFile(jarFile, "test.txt");
          assertThat(
                  new ClassPath.LocationInfo(jarFile, ClassPathTest.class.getClassLoader())
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/Files.java

       * href="https://github.com/google/guava/issues/4011">CVE-2020-8908</a>.)
       *
       * <p>Use this method instead of {@link File#createTempFile(String, String)} when you wish to
       * create a directory, not a regular file. A common pitfall is to call {@code createTempFile},
       * delete the file and create a directory in its place, but this leads a race condition which can
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
Back to top