Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for fileThreshold (0.17 seconds)

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

       * {@link ByteSource} returned by {@link #asByteSource} is garbage collected.
       *
       * @param fileThreshold the number of bytes before the stream should switch to buffering to a file
       * @throws IllegalArgumentException if {@code fileThreshold} is negative
       */
      public FileBackedOutputStream(int fileThreshold) {
        this(fileThreshold, false);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 17:30:49 GMT 2026
    - 12.4K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

      }
    
      private void testThreshold(
          int fileThreshold, int dataSize, boolean singleByte, boolean resetWhenGarbageCollected)
          throws IOException {
        byte[] data = newPreFilledByteArray(dataSize);
        FileBackedOutputStream out =
            new FileBackedOutputStream(fileThreshold, resetWhenGarbageCollected);
        ByteSource source = out.asByteSource();
        int chunk1 = min(dataSize, fileThreshold);
        int chunk2 = dataSize - chunk1;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 04:04:26 GMT 2026
    - 8K bytes
    - Click Count (0)
Back to Top