Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 124 for hark (0.24 sec)

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

        assertEquals(big[1], small[3]);
      }
    
      public void testLimit_mark() throws Exception {
        byte[] big = newPreFilledByteArray(5);
        InputStream bin = new ByteArrayInputStream(big);
        InputStream lin = ByteStreams.limit(bin, 2);
    
        int read = lin.read();
        assertEquals(big[0], read);
        lin.mark(2);
    
        read = lin.read();
        assertEquals(big[1], read);
        read = lin.read();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteStreams.java

        public int available() throws IOException {
          return (int) Math.min(in.available(), left);
        }
    
        // it's okay to mark even if mark isn't supported, as reset won't work
        @Override
        public synchronized void mark(int readLimit) {
          in.mark(readLimit);
          mark = left;
        }
    
        @Override
        public int read() throws IOException {
          if (left == 0) {
            return -1;
          }
    
    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)
  3. guava/src/com/google/common/collect/HashMultimapGwtSerializationDependencies.java

    import java.util.Map;
    
    /**
     * A dummy superclass to support GWT serialization of the element types of a {@link HashMultimap}.
     * The GWT supersource for this class contains a field for each type.
     *
     * <p>For details about this hack, see {@code GwtSerializationDependencies}, which takes the same
     * approach but with a subclass rather than a superclass.
     *
     * <p>TODO(cpovirk): Consider applying this subclass approach to our other types.
     */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Oct 24 18:57:48 GMT 2019
    - 1.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableMultisetGwtSerializationDependencies.java

    /**
     * A dummy superclass to support GWT serialization of the element type of an {@link
     * ImmutableMultiset}. The GWT supersource for this class contains a field of type {@code E}.
     *
     * <p>For details about this hack, see {@code GwtSerializationDependencies}, which takes the same
     * approach but with a subclass rather than a superclass.
     *
     * <p>TODO(cpovirk): Consider applying this subclass approach to our other types.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ParametricNullness.java

     *       {@code NullPointerTester} would need are not available) and in case of <a
     *       href="https://bugs.openjdk.java.net/browse/JDK-8202469">JDK-8202469</a>
     * </ul>
     *
     * <p>This annotation is a temporary hack. We will remove it after we're able to adopt the <a
     * href="https://jspecify.dev/">JSpecify</a> nullness annotations and <a
     * href="https://github.com/google/guava/issues/6126#issuecomment-1203145963">tools no longer need
     * it</a>.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 10 21:27:51 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/ParametricNullness.java

     *       {@code NullPointerTester} would need are not available) and in case of <a
     *       href="https://bugs.openjdk.java.net/browse/JDK-8202469">JDK-8202469</a>
     * </ul>
     *
     * <p>This annotation is a temporary hack. We will remove it after we're able to adopt the <a
     * href="https://jspecify.dev/">JSpecify</a> nullness annotations and <a
     * href="https://github.com/google/guava/issues/6126#issuecomment-1203145963">tools no longer need
     * it</a>.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 10 21:27:51 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Charsets.java

      public static final Charset UTF_16LE = Charset.forName("UTF-16LE");
    
      /**
       * UTF-16: sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order
       * mark.
       *
       * <p><b>Java 7+ users:</b> this constant should be treated as deprecated; use {@link
       * java.nio.charset.StandardCharsets#UTF_16} instead.
       *
       */
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ParametricNullness.java

     *       {@code NullPointerTester} would need are not available) and in case of <a
     *       href="https://bugs.openjdk.java.net/browse/JDK-8202469">JDK-8202469</a>
     * </ul>
     *
     * <p>This annotation is a temporary hack. We will remove it after we're able to adopt the <a
     * href="https://jspecify.dev/">JSpecify</a> nullness annotations and <a
     * href="https://github.com/google/guava/issues/6126#issuecomment-1203145963">tools no longer need
     * it</a>.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 10 21:27:51 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/InetAddresses.java

          return null;
        }
        int partsSkipped = IPV6_PART_COUNT - (delimiterCount + 1); // estimate; may be modified later
        boolean hasSkip = false;
        // Scan for the appearance of ::, to mark a skip-format IPV6 string and adjust the partsSkipped
        // estimate.
        for (int i = 0; i < ipString.length() - 1; i++) {
          if (ipString.charAt(i) == IPV6_DELIMITER && ipString.charAt(i + 1) == IPV6_DELIMITER) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  10. maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java

                final MavenSession currentSession,
                final MavenProject mavenProject,
                Throwable t,
                final long buildStartTime) {
            // record the error and mark the project as failed
            long buildEndTime = System.currentTimeMillis();
            buildContext.getResult().addException(t);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 10.2K bytes
    - Viewed (0)
Back to top