Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 56 for Processor (0.12 seconds)

  1. guava-tests/test/com/google/common/eventbus/ReentrantEventsTest.java

          assertTrue("I received an event when I wasn't ready!", ready);
          eventsReceived.add(event);
        }
      }
    
      public void testEventOrderingIsPredictable() {
        EventProcessor processor = new EventProcessor();
        bus.register(processor);
    
        EventRecorder recorder = new EventRecorder();
        bus.register(recorder);
    
        bus.post(FIRST);
    
        assertEquals(
            "EventRecorder expected events in order",
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 21:52:12 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/io/CharStreams.java

      }
    
      /**
       * Streams lines from a {@link Readable} object, stopping when the processor returns {@code false}
       * or all lines have been read and returning the result produced by the processor. Does not close
       * {@code readable}. Note that this method may not fully consume the contents of {@code readable}
       * if the processor stops processing early.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 29 13:56:24 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/ByteSourceTest.java

                return processedBytes;
              }
            };
    
        source.read(processor);
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
        assertArrayEquals(bytes, processedBytes);
      }
    
      public void testRead_withProcessor_stopsOnFalse() throws IOException {
        ByteProcessor<@Nullable Void> processor =
            new ByteProcessor<@Nullable Void>() {
              boolean firstCall = true;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/FilesTest.java

              }
            };
    
        File asciiFile = getTestFile("ascii.txt");
        byte[] result = Files.readBytes(asciiFile, processor);
        assertEquals(Bytes.asList(Files.toByteArray(asciiFile)), Bytes.asList(result));
      }
    
      public void testReadBytes_returnFalse() throws IOException {
        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              private final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/io/ByteSource.java

      @ParametricNullness
      public <T extends @Nullable Object> T read(ByteProcessor<T> processor) throws IOException {
        checkNotNull(processor);
    
        Closer closer = Closer.create();
        try {
          InputStream in = closer.register(openStream());
          return ByteStreams.readBytes(in, processor);
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/io/Files.java

       *
       * @param file the file to read
       * @param processor the object to which the bytes of the file are passed.
       * @return the result of the byte processor
       * @throws IOException if an I/O error occurs
       * @deprecated Prefer {@code asByteSource(file).read(processor)}.
       */
      @Deprecated
      @InlineMe(
          replacement = "Files.asByteSource(file).read(processor)",
          imports = "com.google.common.io.Files")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jan 05 22:13:21 GMT 2026
    - 32.8K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java

    /**
     * RankFusionProcessor manages multiple search engines and combines their results using rank fusion algorithms.
     * This processor supports searching with multiple searchers concurrently and merging their results based on
     * ranking scores to provide more comprehensive and accurate search results.
     *
     * The processor maintains a pool of searchers and an executor service for concurrent operations.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 25 02:13:14 GMT 2025
    - 28K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

                return processedBytes;
              }
            };
    
        source.read(processor);
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
        assertArrayEquals(bytes, processedBytes);
      }
    
      public void testRead_withProcessor_stopsOnFalse() throws IOException {
        ByteProcessor<@Nullable Void> processor =
            new ByteProcessor<@Nullable Void>() {
              boolean firstCall = true;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  9. build-logic/src/main/kotlin/BndBuildAction.kt

        try {
          Builder(Processor(gradleProperties, false)).use { builder ->
            val temporaryBndFile = File.createTempFile("bnd", ".bnd", temporaryDir)
            IO.writer(temporaryBndFile).use { writer ->
              val bndFileVal = bndfile.asFile.getOrNull()
              if (bndFileVal != null && bndFileVal.isFile) {
                Processor(gradleProperties).let { p ->
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/curl/CurlRequest.java

            connect(con -> {
                final RequestProcessor processor = new RequestProcessor(encoding, threshold);
                processor.accept(con);
                try (final CurlResponse res = processor.getResponse()) {
                    actionListener.accept(res);
                } catch (final IOException e) {
                    exceptionListener.accept(e);
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 19.7K bytes
    - Click Count (0)
Back to Top