Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for deadline (0.19 sec)

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

     * which is necessarily blocking. By implementing an {@code InputStream} it allows consumers to
     * "pull" as much data as they can handle, which is more convenient when dealing with flow
     * controlled, async APIs.
     *
     * @author Chris Nokleberg
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class ReaderInputStream extends InputStream {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  2. 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 (1)
  3. android/guava/src/com/google/common/collect/Multiset.java

       * {@link Collections#frequency} (which would presumably perform more poorly).
       *
       * <p><b>Note:</b> the utility method {@link Iterables#frequency} generalizes this operation; it
       * correctly delegates to this method when dealing with a multiset, but it can also accept any
       * other iterable type.
       *
       * @param element the element to count occurrences of
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteSource.java

            // methods on this class also have potential problems with infinite  Iterables. But unlike
            // those, this method can cause issues even if the user is dealing with a (finite) slice()
            // of this source, since the slice's sizeIfKnown() method needs to know the size of the
            // underlying source to know what its size actually is.
            return Optional.absent();
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Files.java

       * @throws IOException if an I/O error occurs
       */
      public static List<String> readLines(File file, Charset charset) throws IOException {
        // don't use asCharSource(file, charset).readLines() because that returns
        // an immutable list, which would change the behavior of this method
        return asCharSource(file, charset)
            .readLines(
                new LineProcessor<List<String>>() {
    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)
  6. android/guava/src/com/google/common/net/InetAddresses.java

     * possible over their JDK equivalents whenever you are expecting to handle only IP address string
     * literals -- there is no blocking DNS penalty for a malformed string.
     *
     * <p>When dealing with {@link Inet4Address} and {@link Inet6Address} objects as byte arrays (vis.
     * {@code InetAddress.getAddress()}) they are 4 and 16 bytes in length, respectively, and represent
     * the address in network byte order.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  7. guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java

      private void doExtensiveTest(String resourceName) throws IOException {
        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)
  8. android/guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java

      private void doExtensiveTest(String resourceName) throws IOException {
        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 May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 11K bytes
    - Viewed (0)
  9. android/pom.xml

                       builds with JDK8 began failing animal-sniffer with the error:
    
                       Failed to check signatures: Bad class file .../CollectionFuture$ListFuture.class
    
                       One way of dealing with that would be to disable
                       animal-sniffer. And that would be fine for our -jre builds:
                       If we're building with JDK8, then clearly we're sticking to
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        UnsupportedOperationException expected =
            assertThrows(UnsupportedOperationException.class, () -> in.readLine());
        assertThat(expected).hasMessageThat().isEqualTo("readLine is not supported");
      }
    
      public void testReadLittleEndian() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.8K bytes
    - Viewed (0)
Back to top