Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for resources (0.21 sec)

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

       * this class ({@code Resources}) will be used instead.
       *
       * @throws IllegalArgumentException if the resource is not found
       */
      @CanIgnoreReturnValue // being used to check if a resource exists
      // TODO(cgdecker): maybe add a better way to check if a resource exists
      // e.g. Optional<URL> tryGetResource or boolean resourceExists
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/ResourcesTest.java

      }
    
      public void testToByteArray() throws IOException {
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertThat(Resources.toByteArray(resource)).isEqualTo(I18N.getBytes(Charsets.UTF_8));
      }
    
      public void testReadLines() throws IOException {
        // TODO(chrisn): Check in a better resource
        URL resource = getClass().getResource("testdata/i18n.txt");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/Closeables.java

       * I/O resource, it should generally be safe in the case of a resource that's being used only for
       * reading, such as an {@code InputStream}. Unlike with writable resources, there's no chance that
       * a failure that occurs when closing the stream indicates a meaningful problem such as a failure
       * to flush all bytes to the underlying resource.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ResourcesTest.java

      }
    
      public void testToByteArray() throws IOException {
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertThat(Resources.toByteArray(resource)).isEqualTo(I18N.getBytes(Charsets.UTF_8));
      }
    
      public void testReadLines() throws IOException {
        // TODO(chrisn): Check in a better resource
        URL resource = getClass().getResource("testdata/i18n.txt");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/ClassPath.java

      private final ImmutableSet<ResourceInfo> resources;
    
      private ClassPath(ImmutableSet<ResourceInfo> resources) {
        this.resources = resources;
      }
    
      /**
       * Returns a {@code ClassPath} representing all classes and resources loadable from {@code
       * classloader} and its ancestor class loaders.
       *
       * <p><b>Warning:</b> {@code ClassPath} can find classes and resources only from:
       *
       * <ul>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 24.9K bytes
    - Viewed (1)
  6. guava/src/com/google/common/cache/RemovalListener.java

     *
     * <p>An instance may be called concurrently by multiple threads to process different entries.
     * Implementations of this interface should avoid performing blocking calls or synchronizing on
     * shared resources.
     *
     * @param <K> the most general type of keys this listener can listen for; for example {@code Object}
     *     if any key is acceptable
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

           * consistency with how weak references are cleared). That's a behavior change -- arguably the
           * removal of a feature.
           *
           * Fortunately, exceptions rarely contain references to expensive resources.
           */
    
          //
          seenExceptionsLocal = newConcurrentHashSet();
          /*
           * Other handleException() callers may see this as soon as we publish it. We need to populate
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * overflow, depending on the real world consequences of not using the expected rate.
       *
       * Past underutilization could mean that excess resources are available. Then, the RateLimiter
       * should speed up for a while, to take advantage of these resources. This is important when the
       * rate is applied to networking (limiting bandwidth), where past underutilization typically
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/SourceSinkFactories.java

        @SuppressWarnings("CheckReturnValue") // only using super.createSource to create a file
        @Override
        public ByteSource createSource(byte[] bytes) throws IOException {
          super.createSource(bytes);
          return Resources.asByteSource(getFile().toURI().toURL());
        }
      }
    
      private static class UrlCharSourceFactory extends FileCharSourceFactory {
    
    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)
  10. android/guava/src/com/google/common/util/concurrent/Service.java

       * {@code A -> B}.
       *
       * @since 9.0 (in 1.0 as {@code com.google.common.base.Service.State})
       */
      enum State {
        /** A service in this state is inactive. It does minimal work and consumes minimal resources. */
        NEW,
    
        /** A service in this state is transitioning to {@link #RUNNING}. */
        STARTING,
    
        /** A service in this state is operational. */
        RUNNING,
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 10.7K bytes
    - Viewed (0)
Back to top