Class ProgressToOutput

java.lang.Object
aQute.bnd.service.progress.ProgressToOutput
All Implemented Interfaces:
ProgressPlugin

public class ProgressToOutput extends Object implements ProgressPlugin
  • Field Details

    • logger

      static final org.slf4j.Logger logger
    • lock

      final Object lock
    • appendable

      final Appendable appendable
    • eol

      final String eol
  • Constructor Details

    • ProgressToOutput

      public ProgressToOutput(Appendable appendable, String eol)
  • Method Details

    • log

      private void log(String msg, boolean nl, Object... args)
    • startTask

      public ProgressPlugin.Task startTask(String name, int size)
      Description copied from interface: ProgressPlugin
      Start a task with the specified name.
      Specified by:
      startTask in interface ProgressPlugin
      Parameters:
      name - The name of the task -- must not be null.
      size - The expected size of the task, or -1 if not known in advance.
      Returns:
      A handle for the ongoing task.
    • clear

      public void clear()