Class FileBackedOutputStream

    • Constructor Detail

      • FileBackedOutputStream

        public FileBackedOutputStream​(int fileThreshold,
                                      @Nullable String fileDirectory)
        Creates a new instance that uses the given file threshold, and does not reset the data when the ByteSource returned by asByteSource() is finalized.
        Parameters:
        fileThreshold - the number of bytes before the stream should switch to buffering to a file
        fileDirectory - the directory in which to create the file if needed. If null, the default temp file location is used.