Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ByteProcessor (0.14 sec)

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

      }
    
      public void testRead_withProcessor() throws IOException {
        final byte[] processedBytes = new byte[bytes.length];
        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              int pos;
    
              @Override
              public boolean processBytes(byte[] buf, int off, int len) throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

      }
    
      public void testRead_withProcessor() throws IOException {
        final byte[] processedBytes = new byte[bytes.length];
        ByteProcessor<byte[]> processor =
            new ByteProcessor<byte[]>() {
              int pos;
    
              @Override
              public boolean processBytes(byte[] buf, int off, int len) throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteSource.java

       *     processor} throws an {@code IOException}
       * @since 16.0
       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @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());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Files.java

          imports = "com.google.common.io.Files")
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public
      static <T extends @Nullable Object> T readBytes(File file, ByteProcessor<T> processor)
          throws IOException {
        return asByteSource(file).read(processor);
      }
    
      /**
       * Computes the hash code of the {@code file} using {@code hashFunction}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/ByteStreams.java

       * @since 14.0
       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/Files.java

          imports = "com.google.common.io.Files")
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public
      static <T extends @Nullable Object> T readBytes(File file, ByteProcessor<T> processor)
          throws IOException {
        return asByteSource(file).read(processor);
      }
    
      /**
       * Computes the hash code of the {@code file} using {@code hashFunction}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top