Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for readAllLines (0.19 seconds)

  1. android/guava/src/com/google/common/io/CharStreams.java

       * BufferedReader#lines()}.
       *
       * <p><b>Java 25+ users:</b> If the input is a {@link Reader}, you may prefer {@link
       * Reader#readAllLines()}. The two may have different performance characteristics for different
       * {@link Reader} classes and Java versions, but both methods read the entire input into memory
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 29 13:56:24 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/io/Files.java

       * Files.asCharSource(file, charset).readLines()}.
       *
       * <p><b>{@link java.nio.file.Path} equivalent:</b> {@link
       * java.nio.file.Files#readAllLines(java.nio.file.Path, Charset)}.
       *
       * @param file the file to read from
       * @param charset the charset used to decode the input stream; see {@link StandardCharsets} for
       *     helpful predefined constants
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jan 05 22:13:21 GMT 2026
    - 32.8K bytes
    - Click Count (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.java

        }
    
        @Test
        public void testPerf() throws IOException {
            List<String[]> data = new ArrayList<>();
            String k = null;
            for (String line : Files.readAllLines(Paths.get("src/test/resources/dag.txt"))) {
                if (line.startsWith("\t")) {
                    data.add(new String[] {k, line.trim()});
                } else {
                    k = line;
                }
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 2K bytes
    - Click Count (0)
  4. .teamcity/scripts/CheckWrapper.java

        }
    
        private static String readWrapperVersion() throws IOException {
            Path props = Paths.get("gradle/wrapper/gradle-wrapper.properties");
            List<String> lines = Files.readAllLines(props, StandardCharsets.UTF_8);
            String distributionUrl =
                lines.stream()
                    .map(String::trim)
                    .filter(l -> !l.isEmpty() && !l.startsWith("#"))
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jan 20 03:53:25 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  5. .teamcity/scripts/CheckRemoteProjectRef.java

            }
        }
    
        private static Map<String, String> readProperties(Path file) throws IOException {
            Map<String, String> out = new LinkedHashMap<>();
            List<String> lines = Files.readAllLines(file, StandardCharsets.UTF_8);
            for (String line : lines) {
                String trimmed = line.trim();
                if (trimmed.isEmpty() || trimmed.startsWith("#") || trimmed.startsWith("!")) {
                    continue;
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jan 20 03:53:25 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindMissingDocumentationFiles.java

                            // The regex `^\\s*\\[\\[(.*)\\]\\]` looks for lines starting with '[[...]]'
                            // and captures the content within the brackets.
                            Files.readAllLines(file).forEach(line -> {
                                if (line.matches("^\\s*\\[\\[(.*)\\]\\].*")) {
                                    String anchorName = line.replaceAll("^\\s*\\[\\[(.*)\\]\\].*$", "$1");
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Aug 21 15:38:58 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  7. apache-maven/src/assembly/maven/bin/JvmConfigParser.java

         */
        static String parseJvmConfig(Path jvmConfigPath, String mavenProjectBasedir) throws IOException {
            StringBuilder result = new StringBuilder();
    
            for (String line : Files.readAllLines(jvmConfigPath, StandardCharsets.UTF_8)) {
                line = processLine(line, mavenProjectBasedir);
                if (line.isEmpty()) {
                    continue;
                }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Dec 10 16:40:06 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBrokenInternalLinks.java

            }
        }
    
        private boolean fileContainsText(File referencedFile, String text) {
            try {
                for (String line : Files.readAllLines(referencedFile.toPath())) {
                    if (line.contains(text)) {
                        return true;
                    }
                }
            } catch (IOException e) {
                // ignore
            }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 12 23:22:57 GMT 2026
    - 12.8K bytes
    - Click Count (0)
Back to Top