Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 147 for Read (0.14 sec)

  1. guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        assertEquals(0, ticker.read());
        assertEquals(10, ticker.read());
        assertEquals(20, ticker.read());
      }
    
      public void testAutoIncrementStep_millis() {
        FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, TimeUnit.MILLISECONDS);
        assertEquals(0, ticker.read());
        assertEquals(1000000, ticker.read());
        assertEquals(2000000, ticker.read());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPluginXmlFactory.java

                if (inputStream != null) {
                    return xml.read(inputStream, request.isStrict());
                } else if (reader != null) {
                    return xml.read(reader, request.isStrict());
                } else if (path != null) {
                    try (InputStream is = Files.newInputStream(path)) {
                        return xml.read(is, request.isStrict());
                    }
                } else {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/text/Tokenizer.java

                if (peekc == '\r') {
                    peekc = read();
                    if (peekc == '\n') {
                        peekc = read();
                    }
                } else {
                    peekc = read();
                }
                if (peekc < 0) {
                    ttype = TT_EOF;
                    return true;
                }
                peekct = peekc < 256 ? ctype[peekc] : CT_ALPHA;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelXmlFactory.java

                if (inputStream != null) {
                    return xml.read(inputStream, request.isStrict(), source);
                } else if (reader != null) {
                    return xml.read(reader, request.isStrict(), source);
                } else if (path != null) {
                    try (InputStream is = Files.newInputStream(path)) {
                        return xml.read(is, request.isStrict(), source);
                    }
                } else {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsXmlFactory.java

                if (reader != null) {
                    return xml.read(reader, request.isStrict());
                } else {
                    return xml.read(inputStream, request.isStrict());
                }
            } catch (Exception e) {
                throw new XmlReaderException("Unable to read toolchains: " + getMessage(e), getLocation(e), e);
            }
        }
    
        @Override
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmService.java

            final byte[] buffer = new byte[1024 * 32];
            for (; ; ) {
                int read = stream.read(buffer);
                if (read < 0) {
                    break;
                }
                for (ChecksumCalculator checksumCalculator : algMap.values()) {
                    checksumCalculator.update(ByteBuffer.wrap(buffer, 0, read));
                }
            }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/io/FileUtil.java

            try {
                final FileChannel channel = is.getChannel();
                final ByteBuffer buffer = ByteBuffer.allocate((int) ChannelUtil.size(channel));
                ChannelUtil.read(channel, buffer);
                return buffer.array();
            } finally {
                CloseableUtil.close(is);
            }
        }
    
        /**
         * デフォルトエンコーディングでファイルからテキストを読み込みます。
         *
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        long startTime = ticker.read();
        V calculatedValue;
        try {
          calculatedValue = loader.load(key);
          put(key, calculatedValue);
        } catch (RuntimeException e) {
          statsCounter.recordLoadException(ticker.read() - startTime);
          throw new UncheckedExecutionException(e);
        } catch (Exception e) {
          statsCounter.recordLoadException(ticker.read() - startTime);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

            // proceed. So we cannot yet null out each bin.
            E head = oldTable.get(oldIndex);
    
            if (head != null) {
              E next = head.getNext();
              int headIndex = head.getHash() & newMask;
    
              // Single node on list
              if (next == null) {
                newTable.set(headIndex, head);
              } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ProfileInjector.java

         *
         * @param model The model into which to merge the values defined by the profile, must not be <code>null</code>.
         * @param profile The (read-only) profile whose values should be injected, may be <code>null</code>.
         * @param request The model building request that holds further settings, must not be {@code null}.
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.9K bytes
    - Viewed (0)
Back to top