Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for processBytes (0.04 sec)

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

        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              private final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
              @Override
              public boolean processBytes(byte[] buffer, int offset, int length) throws IOException {
                if (length >= 0) {
                  out.write(buffer, offset, length);
                }
                return true;
              }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FilesTest.java

        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              private final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
              @Override
              public boolean processBytes(byte[] buffer, int offset, int length) throws IOException {
                if (length >= 0) {
                  out.write(buffer, offset, length);
                }
                return true;
              }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ByteSource.java

        }
    
        @SuppressWarnings("CheckReturnValue") // it doesn't matter what processBytes returns here
        @Override
        @ParametricNullness
        public <T extends @Nullable Object> T read(ByteProcessor<T> processor) throws IOException {
          processor.processBytes(bytes, offset, length);
          return processor.getResult();
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Mar 20 20:55:20 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/ByteStreams.java

        checkNotNull(input);
        checkNotNull(processor);
    
        byte[] buf = createBuffer();
        int read;
        do {
          read = input.read(buf);
        } while (read != -1 && processor.processBytes(buf, 0, read));
        return processor.getResult();
      }
    
      /**
       * Reads some bytes from an input stream and stores them into the buffer array {@code b}. This
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
Back to top