Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for readAllBytes (0.05 sec)

  1. impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java

            // build project once
            projectBuilder.build(child, configuration);
            // modify parent
            File parent = new File(tempDir.toFile(), "pom.xml");
            String parentContent = new String(Files.readAllBytes(parent.toPath()), StandardCharsets.UTF_8);
            parentContent = parentContent.replace(
                    "<packaging>pom</packaging>",
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/Suggester.java

                if (is == null) {
                    throw new IOException("Resource not found: suggest_indices/suggest/mappings-default.json");
                }
                return new String(is.readAllBytes(), StandardCharsets.UTF_8);
            }
        }
    
        private String getDefaultIndexSettings() throws IOException {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 21.6K bytes
    - Viewed (3)
  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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K 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 Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  5. 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: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 28K 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 20:24:13 UTC 2025
    - 32.8K bytes
    - Viewed (0)
  8. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 20:24:13 UTC 2025
    - 32.8K bytes
    - Viewed (0)
Back to top