- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for readAllBytes (0.23 sec)
-
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 Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
String sourceContent = new String(in.readAllBytes(), "UTF-8"); assertEquals(content, sourceContent, "Source content should remain unchanged"); } try (InputStream in = targetFile.getInputStream()) { String targetContent = new String(in.readAllBytes(), "UTF-8"); assertEquals(content, targetContent, "Target content should match source");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java
Files.writeString(testFile, content); Source source = Sources.fromPath(testFile); try (InputStream inputStream = source.openStream()) { String readContent = new String(inputStream.readAllBytes()); assertEquals(content, readContent); } } @Test void testNullHandling() { assertThrows(NullPointerException.class, () -> Sources.fromPath(null));
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
assertTrue("Thread dump file should not be empty", Files.size(tempFile) > 0); // Verify the content contains thread information String content = new String(Files.readAllBytes(tempFile), Constants.CHARSET_UTF_8); assertTrue("Content should contain 'Thread:'", content.contains("Thread:")); assertTrue("Content should contain stack trace elements", content.contains("\tat "));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 15.5K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 17.9K bytes - Viewed (0) -
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 Sep 07 03:35:12 UTC 2025 - Last Modified: Sat Apr 05 11:52:05 UTC 2025 - 29.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/TransformerTest.java
resultData.setTransformerName(name); // Apply transformation rules try (InputStream is = responseData.getResponseBody()) { byte[] bytes = is.readAllBytes(); String content = new String(bytes); for (Map.Entry<String, String> rule : transformationRules.entrySet()) { content = content.replaceAll(rule.getKey(), rule.getValue());
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 28K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 32.9K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 32.9K bytes - Viewed (0)