Class DeferredFileOutputStream.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Constructs a new builder.
    • Method Detail

      • setDirectory

        public DeferredFileOutputStream.Builder setDirectory​(java.io.File directory)
        Sets the temporary file directory.
        Parameters:
        directory - Temporary file directory.
        Returns:
        this
      • setDirectory

        public DeferredFileOutputStream.Builder setDirectory​(java.nio.file.Path directory)
        Sets the temporary file directory.
        Parameters:
        directory - Temporary file directory.
        Returns:
        this
        Since:
        2.14.0
      • setOutputFile

        public DeferredFileOutputStream.Builder setOutputFile​(java.io.File outputFile)
        Sets the file to which data is saved beyond the threshold.
        Parameters:
        outputFile - The file to which data is saved beyond the threshold.
        Returns:
        this
      • setOutputFile

        public DeferredFileOutputStream.Builder setOutputFile​(java.nio.file.Path outputFile)
        Sets the file to which data is saved beyond the threshold.
        Parameters:
        outputFile - The file to which data is saved beyond the threshold.
        Returns:
        this
        Since:
        2.14.0
      • setPrefix

        public DeferredFileOutputStream.Builder setPrefix​(java.lang.String prefix)
        Sets the prefix to use for the temporary file.
        Parameters:
        prefix - Prefix to use for the temporary file.
        Returns:
        this
      • setSuffix

        public DeferredFileOutputStream.Builder setSuffix​(java.lang.String suffix)
        Sets the suffix to use for the temporary file.
        Parameters:
        suffix - Suffix to use for the temporary file.
        Returns:
        this
      • setThreshold

        public DeferredFileOutputStream.Builder setThreshold​(int threshold)
        Sets the number of bytes at which to trigger an event.
        Parameters:
        threshold - The number of bytes at which to trigger an event.
        Returns:
        this