Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for readAllBytes (0.21 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

                Artifact artifact = createArtifact("artifact", "1.0");
    
                File file = new File(artifactBasedir, "artifact-1.0.jar");
                assertEquals("dummy", new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8).trim());
    
                artifactDeployer.deploy(file, artifact, remoteRepository(), localRepository());
    
                ArtifactRepository remoteRepository = remoteRepository();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. build-logic-settings/UpdateDevelocityPluginVersion.java

                "settings.gradle.kts"
            };
    
            for (String file : files) {
                File f = new File(file);
                if (f.exists()) {
                    String content = new String(Files.readAllBytes(f.toPath()));
                    content = content.replaceAll("com.gradle:develocity-gradle-plugin:[\\d\\.]*\"", "com.gradle:develocity-gradle-plugin:" + newVersion + '"');
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Sep 12 07:58:50 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/SourceSinkFactories.java

            return result;
          }
        }
    
        @Override
        public byte[] getSinkContents() throws IOException {
          Path file = getPath();
          return java.nio.file.Files.readAllBytes(file);
        }
      }
    
      @AndroidIncompatible
      private static class PathCharSourceFactory extends Jdk7FileFactory implements CharSourceFactory {
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                tempChecksumFile.deleteOnExit();
                wagon.get(remotePath + checksumFileExtension, tempChecksumFile);
                byte[] bytes = Files.readAllBytes(tempChecksumFile.toPath());
                String expectedChecksum = new String(bytes, StandardCharsets.UTF_8);
    
                // remove whitespaces at the end
                expectedChecksum = expectedChecksum.trim();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Files.java

        return asByteSink(file, modes).asCharSink(charset);
      }
    
      /**
       * Reads all bytes from a file into a byte array.
       *
       * <p><b>{@link java.nio.file.Path} equivalent:</b> {@link java.nio.file.Files#readAllBytes}.
       *
       * @param file the file to read from
       * @return a byte array containing all the bytes from file
       * @throws IllegalArgumentException if the file is bigger than the largest possible byte array
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/ByteStreams.java

        }
        return result;
      }
    
      /**
       * Reads all bytes from an input stream into a byte array. Does not close the stream.
       *
       * <p><b>Java 9+ users:</b> use {@code in#readAllBytes()} instead.
       *
       * @param in the input stream to read from
       * @return a byte array containing all the bytes from the stream
       * @throws IOException if an I/O error occurs
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/Files.java

        return asByteSink(file, modes).asCharSink(charset);
      }
    
      /**
       * Reads all bytes from a file into a byte array.
       *
       * <p><b>{@link java.nio.file.Path} equivalent:</b> {@link java.nio.file.Files#readAllBytes}.
       *
       * @param file the file to read from
       * @return a byte array containing all the bytes from file
       * @throws IllegalArgumentException if the file is bigger than the largest possible byte array
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top