Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 6,238 for in (0.18 sec)

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

      }
    
      public void testNewDataInput_normal() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        assertEquals(0x12345678, in.readInt());
        assertEquals(0x76543210, in.readInt());
        assertThrows(IllegalStateException.class, () -> in.readInt());
      }
    
      public void testNewDataInput_readFully() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer);
    
        byte[] buf = new byte[100];
        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(-1, in.read()); // additional read
        assertEquals(4, numOfByteRead);
    
        assertEquals(expectedHash, in.hash());
      }
    
      public void testHash_hashesCorrectlyForSkipping() throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/ReferenceEntry.java

      /** Returns the time that this entry was last accessed, in ns. */
      @SuppressWarnings("GoodTime")
      long getAccessTime();
    
      /** Sets the entry access time in ns. */
      @SuppressWarnings("GoodTime") // b/122668874
      void setAccessTime(long time);
    
      /** Returns the next entry in the access queue. */
      ReferenceEntry<K, V> getNextInAccessQueue();
    
      /** Sets the next entry in the access queue. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/internal/impl/PathModularization.java

         * <ul>
         *   <li>If a {@code module-info.class} file is found in the root directory or in a
         *       {@code "META-INF/versions/{n}/"} subdirectory, builds a singleton map with
         *       the module name declared in that descriptor.</li>
         *   <li>Otherwise if an {@code "Automatic-Module-Name"} attribute is declared in the
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteStreams.java

       *
       * <p><b>Java 9+ users:</b> use {@code in#readAllBytes()} instead.
       *
       * @param in the input stream to read from
       * @return a byte array containing all the bytes from the stream
       * @throws IOException if an I/O error occurs
       */
      public static byte[] toByteArray(InputStream in) throws IOException {
        checkNotNull(in);
        return toByteArrayInternal(in, new ArrayDeque<byte[]>(TO_BYTE_ARRAY_DEQUE_SIZE), 0);
      }
    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)
  6. android/guava/src/com/google/common/collect/Multiset.java

       * exactly one entry for each distinct element in the multiset (thus it always has the same size
       * as the {@link #elementSet}). The order of the elements in the element set is unspecified.
       *
       * <p>The entry set is backed by the same data as the multiset, so any change to either is
       * immediately reflected in the other. However, multiset changes may or may not be reflected in
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/xml/XmlEscapers.java

       *
       * <p>This escaper does not escape non-ASCII characters to their numeric character references
       * (NCR). Any non-ASCII characters appearing in the input will be preserved in the output.
       * Specifically "\r" (carriage return) is preserved in the output, which may result in it being
       * silently converted to "\n" when the XML is parsed.
       *
       * <p>This escaper does not treat surrogate pairs specially and does not perform Unicode
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMultimap.java

      }
    
      /** Returns an immutable multimap containing the given entries, in order. */
      public static <K, V> ImmutableMultimap<K, V> of(K k1, V v1, K k2, V v2) {
        return ImmutableListMultimap.of(k1, v1, k2, v2);
      }
    
      /**
       * Returns an immutable multimap containing the given entries, in the "key-grouped" insertion
       * order described in the <a href="#iteration">class documentation</a>.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/ByteSource.java

       * @throws IOException if an I/O error occurs while opening the stream
       * @since 15.0 (in 14.0 with return type {@link BufferedInputStream})
       */
      public InputStream openBufferedStream() throws IOException {
        InputStream in = openStream();
        return (in instanceof BufferedInputStream)
            ? (BufferedInputStream) in
            : new BufferedInputStream(in);
      }
    
      /**
    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)
  10. android/guava-tests/test/com/google/common/io/TestReader.java

      private final TestInputStream in;
    
      public TestReader(TestOption... options) throws IOException {
        this(new TestInputStream(new ByteArrayInputStream(new byte[10]), options));
      }
    
      public TestReader(TestInputStream in) {
        super(new InputStreamReader(checkNotNull(in), UTF_8));
        this.in = in;
      }
    
      public boolean closed() {
        return in.closed();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.3K bytes
    - Viewed (0)
Back to top