Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 52 for readFile (0.31 sec)

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

            "expected IllegalArgumentException for call to slice with length -1: " + source,
            IllegalArgumentException.class,
            () -> source.slice(0, -1));
      }
    
      // Test that you can not expand the readable data in a previously sliced ByteSource.
      public void testSlice_constrainedRange() throws IOException {
        long size = source.read().length;
        if (size >= 2) {
          ByteSource sliced = source.slice(1, size - 2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  2. LICENSE

              the Derivative Works; and
    
          (d) If the Work includes a "NOTICE" text file as part of its
              distribution, then any Derivative Works that You distribute must
              include a readable copy of the attribution notices contained
              within such NOTICE file, excluding those notices that do not
              pertain to any part of the Derivative Works, in at least one
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 22 18:59:39 GMT 2023
    - 11.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RangeSet.java

       */
      @Override
      boolean equals(@CheckForNull Object obj);
    
      /** Returns {@code asRanges().hashCode()}. */
      @Override
      int hashCode();
    
      /**
       * Returns a readable string representation of this range set. For example, if this {@code
       * RangeSet} consisted of {@code Range.closed(1, 3)} and {@code Range.greaterThan(4)}, this might
       * return {@code " [1..3](4..+∞)}"}.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertThrows(NullPointerException.class, () -> Files.newReader(null, Charsets.UTF_8));
    
        BufferedReader r = Files.newReader(asciiFile, Charsets.US_ASCII);
        try {
          assertEquals(ASCII, r.readLine());
        } finally {
          r.close();
        }
      }
    
      public void testNewWriter() throws IOException {
        File temp = createTempFile();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/BaseEncoding.java

     * <td>{@link #base16()}
     * <td>0-9 A-F
     * <td>2.00
     * <td>N/A
     * <td>Traditional hexadecimal. Defaults to upper case.
     * <tr>
     * <td>{@link #base32()}
     * <td>A-Z 2-7
     * <td>1.60
     * <td>=
     * <td>Human-readable; no possibility of mixing up 0/O or 1/I. Defaults to upper case.
     * <tr>
     * <td>{@link #base32Hex()}
     * <td>0-9 A-V
     * <td>1.60
     * <td>=
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/CharSource.java

          return reader.readLine();
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      /**
       * Reads all the lines of this source as a list of strings. The returned list will be empty if
       * this source is empty.
       *
       * <p>Like {@link BufferedReader#readLine()}, this method considers a line to be a sequence of
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        } else {
          addPendingString(builder); // delegates to addDoneString if future completes midway
        }
        return builder.append("]").toString();
      }
    
      /**
       * Provide a human-readable explanation of why this future has not yet completed.
       *
       * @return null if an explanation cannot be provided (e.g. because the future is done).
       * @since 23.0
       */
      @CheckForNull
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

              @Override
              public void run() {
                delegateForDelayedRuntimeException.set("Should never be seen");
              }
            };
    
        /** All the futures, together with human-readable names for use by {@link #smartToString}. */
        final ImmutableList<TestFuture> allFutures =
            ImmutableList.of(
                new TestFuture(doneSuccess, "doneSuccess", doNothing),
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/LocalCache.java

    class LocalCache<K, V> extends AbstractMap<K, V> implements ConcurrentMap<K, V> {
    
      /*
       * The basic strategy is to subdivide the table among Segments, each of which itself is a
       * concurrently readable hash table. The map supports non-blocking reads and concurrent writes
       * across different segments.
       *
       * If a maximum size is specified, a best-effort bounding is performed per segment, using a
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteStreams.java

            break;
          }
          to.write(buf, 0, r);
          total += r;
        }
        return total;
      }
    
      /**
       * Copies all bytes from the readable channel to the writable channel. Does not close or flush
       * either channel.
       *
       * @param from the readable channel to read from
       * @param to the writable channel to write to
       * @return the number of bytes copied
       * @throws IOException if an I/O error occurs
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
Back to top