Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for tempfile (0.23 sec)

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

       */
      protected final File createTempDir() throws IOException {
        File tempFile = File.createTempFile("IoTestCase", "");
        if (!tempFile.delete() || !tempFile.mkdir()) {
          throw new IOException("failed to create temp dir");
        }
        filesToDelete.add(tempFile);
        return tempFile;
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/ResourcesTest.java

        // Check that we can find a resource if it is visible to the context class
        // loader, even if it is not visible to the loader of the Resources class.
    
        File tempFile = createTempFile();
        PrintWriter writer = new PrintWriter(tempFile, "UTF-8");
        writer.println("rud a chur ar an méar fhada");
        writer.close();
    
        // First check that we can't find it without setting the context loader.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/IoTestCase.java

       */
      protected final File createTempDir() throws IOException {
        File tempFile = File.createTempFile("IoTestCase", "");
        if (!tempFile.delete() || !tempFile.mkdir()) {
          throw new IOException("failed to create temp dir");
        }
        filesToDelete.add(tempFile);
        return tempFile;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ResourcesTest.java

        // Check that we can find a resource if it is visible to the context class
        // loader, even if it is not visible to the loader of the Resources class.
    
        File tempFile = createTempFile();
        PrintWriter writer = new PrintWriter(tempFile, "UTF-8");
        writer.println("rud a chur ar an méar fhada");
        writer.close();
    
        // First check that we can't find it without setting the context loader.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        WritableByteChannel outChannel = Channels.newChannel(out);
    
        File testFile = createTempFile();
        byte[] dummyData = newPreFilledByteArray(chunkSize);
        try (FileOutputStream fos = new FileOutputStream(testFile)) {
          for (int i = 0; i < 500; i++) {
            fos.write(dummyData);
          }
        }
        try (ReadableByteChannel inChannel = new RandomAccessFile(testFile, "r").getChannel()) {
          ByteStreams.copy(inChannel, outChannel);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        WritableByteChannel outChannel = Channels.newChannel(out);
    
        File testFile = createTempFile();
        byte[] dummyData = newPreFilledByteArray(chunkSize);
        try (FileOutputStream fos = new FileOutputStream(testFile)) {
          for (int i = 0; i < 500; i++) {
            fos.write(dummyData);
          }
        }
        try (ReadableByteChannel inChannel = new RandomAccessFile(testFile, "r").getChannel()) {
          ByteStreams.copy(inChannel, outChannel);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
Back to top