Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newBufferedReader (0.15 sec)

  1. maven-core/src/main/java/org/apache/maven/execution/DefaultBuildResumptionDataRepository.java

            if (!Files.exists(path)) {
                LOGGER.warn("The {} file does not exist. The --resume / -r feature will not work.", path);
                return properties;
            }
    
            try (Reader reader = Files.newBufferedReader(path)) {
                properties.load(reader);
            } catch (IOException e) {
                LOGGER.warn("Unable to read {}. The --resume / -r feature will not work.", path);
            }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 06 08:51:18 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/SourceSinkFactories.java

        }
    
        @Override
        public String getSinkContents() throws IOException {
          Path file = getPath();
          try (Reader reader = java.nio.file.Files.newBufferedReader(file, Charsets.UTF_8)) {
            StringBuilder builder = new StringBuilder();
            for (int c = reader.read(); c != -1; c = reader.read()) {
              builder.append((char) c);
            }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Sep 09 17:57:59 GMT 2021
    - 17.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/Files.java

      private Files() {}
    
      /**
       * Returns a buffered reader that reads from a file using the given character set.
       *
       * <p><b>{@link java.nio.file.Path} equivalent:</b> {@link
       * java.nio.file.Files#newBufferedReader(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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
Back to top