Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for readAllBytes (0.08 seconds)

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

        }
        return result;
      }
    
      /**
       * Reads all bytes from an input stream into a byte array. Does not close the stream.
       *
       * <p><b>Java 9+ users:</b> use {@code in#readAllBytes()} instead.
       *
       * @param in the input stream to read from
       * @return a byte array containing all the bytes from the stream
       * @throws IOException if an I/O error occurs
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 31.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/curl/io/ContentCache.java

         */
        public byte[] getContentAsBytes() throws IOException {
            if (data != null) {
                return data.clone();
            }
            return Files.readAllBytes(file.toPath());
        }
    
        @Override
        public void close() throws IOException {
            if (file != null) {
                Files.delete(file.toPath());
            }
        }
    
        /**
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

                assertTrue("Thread dump file should not be empty", Files.size(tempFile) > 0);
    
                // Verify the content contains thread information
                String content = new String(Files.readAllBytes(tempFile), Constants.CHARSET_UTF_8);
                assertTrue("Content should contain 'Thread:'", content.contains("Thread:"));
                assertTrue("Content should contain stack trace elements", content.contains("\tat "));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.6K bytes
    - Click Count (0)
Back to Top