Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ByteProcessor (0.08 sec)

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

        assertEquals("blah", Files.getNameWithoutExtension("/foo/.bar/blah"));
      }
    
      public void testReadBytes() throws IOException {
        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              private final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
              @Override
    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

        assertEquals("blah", Files.getNameWithoutExtension("/foo/.bar/blah"));
      }
    
      public void testReadBytes() throws IOException {
        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              private final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
              @Override
    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. guava/src/com/google/common/io/ByteStreams.java

       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      @J2ktIncompatible
      public static <T extends @Nullable Object> T readBytes(
          InputStream input, ByteProcessor<T> processor) throws IOException {
        checkNotNull(input);
        checkNotNull(processor);
    
        byte[] buf = createBuffer();
        int read;
        do {
          read = input.read(buf);
    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