Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for ByteProcessor (0.06 seconds)

  1. android/guava/src/com/google/common/io/ByteProcessor.java

     * {@code false} when you want to stop processing.
     *
     * @author Chris Nokleberg
     * @since 1.0
     */
    @DoNotMock("Implement it normally")
    @J2ktIncompatible
    @GwtIncompatible
    public interface ByteProcessor<T extends @Nullable Object> {
      /**
       * This method will be called for each chunk of bytes in an input stream. The implementation
       * should process the bytes from {@code buf[off]} through {@code buf[off + len - 1]} (inclusive).
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/io/ByteSourceTester.java

                  }
                }));
      }
    
      public void testRead_usingByteProcessor() throws IOException {
        byte[] readBytes =
            source.read(
                new ByteProcessor<byte[]>() {
                  final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
                  @Override
                  public boolean processBytes(byte[] buf, int off, int len) throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

                  }
                }));
      }
    
      public void testRead_usingByteProcessor() throws IOException {
        byte[] readBytes =
            source.read(
                new ByteProcessor<byte[]>() {
                  final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
                  @Override
                  public boolean processBytes(byte[] buf, int off, int len) throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 8.6K bytes
    - Click Count (0)
Back to Top