Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for Cline (0.16 sec)

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

       */
      public static List<String> readLines(Readable r) throws IOException {
        List<String> result = new ArrayList<>();
        LineReader lineReader = new LineReader(r);
        String line;
        while ((line = lineReader.readLine()) != null) {
          result.add(line);
        }
        return result;
      }
    
      /**
       * Streams lines from a {@link Readable} object, stopping when the processor returns {@code false}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/StandardSystemProperty.java

      /** File separator ("/" on UNIX). */
      FILE_SEPARATOR("file.separator"),
    
      /** Path separator (":" on UNIX). */
      PATH_SEPARATOR("path.separator"),
    
      /** Line separator ("\n" on UNIX). */
      LINE_SEPARATOR("line.separator"),
    
      /** User's account name. */
      USER_NAME("user.name"),
    
      /** User's home directory. */
      USER_HOME("user.home"),
    
      /** User's current working directory. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/Files.java

        }
      }
    
      /**
       * Reads the first line from a file. The line does not include line-termination characters, but
       * does include other leading and trailing whitespace.
       *
       * @param file the file to read from
       * @param charset the charset used to decode the input stream; see {@link StandardCharsets} for
       *     helpful predefined constants
       * @return the first line, or null if the file is empty
    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)
  4. guava-tests/test/com/google/common/io/ByteStreamsTest.java

      }
    
      public void testNewDataInput_readLine() {
        ByteArrayDataInput in =
            ByteStreams.newDataInput(
                "This is a line\r\nThis too\rand this\nand also this".getBytes(Charsets.UTF_8));
        assertEquals("This is a line", in.readLine());
        assertEquals("This too", in.readLine());
        assertEquals("and this", in.readLine());
        assertEquals("and also this", in.readLine());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java

        Splitter splitter = Splitter.on(CharMatcher.whitespace());
        URL url = getClass().getResource(resourceName);
        for (String line : Resources.readLines(url, UTF_8)) {
          Iterator<String> iterator = splitter.split(line).iterator();
          String input = iterator.next();
          String expectedOutput = iterator.next();
          assertFalse(iterator.hasNext());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jul 19 14:00:24 GMT 2016
    - 11K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java

        Splitter splitter = Splitter.on(CharMatcher.whitespace());
        URL url = getClass().getResource(resourceName);
        for (String line : Resources.readLines(url, UTF_8)) {
          Iterator<String> iterator = splitter.split(line).iterator();
          String input = iterator.next();
          String expectedOutput = iterator.next();
          assertFalse(iterator.hasNext());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 11K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/LinearTransformation.java

    import javax.annotation.CheckForNull;
    
    /**
     * The representation of a linear transformation between real numbers {@code x} and {@code y}.
     * Graphically, this is the specification of a straight line on a plane. The transformation can be
     * expressed as {@code y = m * x + c} for finite {@code m} and {@code c}, unless it is a vertical
     * transformation in which case {@code x} has a constant value for all {@code y}. In the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Splitter.java

       * For example, {@code Splitter.on(Pattern.compile("\r?\n")).split(entireFile)} splits a string
       * into lines whether it uses DOS-style or UNIX-style line terminators.
       *
       * @param separatorPattern the pattern that determines whether a subsequence is a separator. This
       *     pattern may not match the empty string.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Cut.java

    import java.util.NoSuchElementException;
    import javax.annotation.CheckForNull;
    
    /**
     * Implementation detail for the internal structure of {@link Range} instances. Represents a unique
     * way of "cutting" a "number line" (actually of instances of type {@code C}, not necessarily
     * "numbers") into two sections; this can be done below a certain value, above a certain value,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

      public void testPuttingTheSameKeyTwiceThrowsOnBuild() {
        Builder<String, Integer> builder =
            new Builder<String, Integer>()
                .put("one", 1)
                .put("one", 1); // throwing on this line would be even better
    
        try {
          builder.build();
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected.getMessage()).contains("one");
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 22.4K bytes
    - Viewed (0)
Back to top