Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for readFirstLine (0.13 sec)

  1. guava-tests/test/com/google/common/io/CharSourceTester.java

        assertExpectedString(string);
      }
    
      public void testReadFirstLine() throws IOException {
        if (expectedLines.isEmpty()) {
          assertNull(source.readFirstLine());
        } else {
          assertEquals(expectedLines.get(0), source.readFirstLine());
        }
      }
    
      public void testReadLines_toList() throws IOException {
        assertExpectedLines(source.readLines());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSourceTester.java

        assertExpectedString(string);
      }
    
      public void testReadFirstLine() throws IOException {
        if (expectedLines.isEmpty()) {
          assertNull(source.readFirstLine());
        } else {
          assertEquals(expectedLines.get(0), source.readFirstLine());
        }
      }
    
      public void testReadLines_toList() throws IOException {
        assertExpectedLines(source.readLines());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/Files.java

       * @deprecated Prefer {@code asCharSource(file, charset).readFirstLine()}.
       */
      @Deprecated
      @InlineMe(
          replacement = "Files.asCharSource(file, charset).readFirstLine()",
          imports = "com.google.common.io.Files")
      @CheckForNull
      public
      static String readFirstLine(File file, Charset charset) throws IOException {
        return asCharSource(file, charset).readFirstLine();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/Files.java

       * @deprecated Prefer {@code asCharSource(file, charset).readFirstLine()}.
       */
      @Deprecated
      @InlineMe(
          replacement = "Files.asCharSource(file, charset).readFirstLine()",
          imports = "com.google.common.io.Files")
      @CheckForNull
      public
      static String readFirstLine(File file, Charset charset) throws IOException {
        return asCharSource(file, charset).readFirstLine();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/FilesTest.java

        File temp = createTempFile();
        assertNull(Files.readFirstLine(temp, UTF_8));
        assertTrue(Files.readLines(temp, UTF_8).isEmpty());
    
        PrintWriter w = new PrintWriter(Files.newWriter(temp, UTF_8));
        w.println("hello");
        w.println("");
        w.println(" world  ");
        w.println("");
        w.close();
    
        assertEquals("hello", Files.readFirstLine(temp, UTF_8));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/CharSource.java

       * it does.
       *
       * @throws IOException if an I/O error occurs while reading from this source
       */
      @CheckForNull
      public String readFirstLine() throws IOException {
        Closer closer = Closer.create();
        try {
          BufferedReader reader = closer.register(openBufferedStream());
          return reader.readLine();
        } catch (Throwable e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/CharSourceTest.java

        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
      public void testReadFirstLine() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
        assertEquals("foo", lines.readFirstLine());
        assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());
      }
    
      public void testReadLines_toList() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/FilesTest.java

        File temp = createTempFile();
        assertNull(Files.readFirstLine(temp, UTF_8));
        assertTrue(Files.readLines(temp, UTF_8).isEmpty());
    
        PrintWriter w = new PrintWriter(Files.newWriter(temp, UTF_8));
        w.println("hello");
        w.println("");
        w.println(" world  ");
        w.println("");
        w.close();
    
        assertEquals("hello", Files.readFirstLine(temp, UTF_8));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
      public void testReadFirstLine() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
        assertEquals("foo", lines.readFirstLine());
        assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());
      }
    
      public void testReadLines_toList() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top