Class BytesProgressPublisher

java.lang.Object
org.xblackcat.sjpu.cli.progress.AProgressPublisher
org.xblackcat.sjpu.cli.progress.BytesProgressPublisher
All Implemented Interfaces:
IProgressPublisher

public class BytesProgressPublisher extends AProgressPublisher
  • Constructor Details

    • BytesProgressPublisher

      public BytesProgressPublisher(Consumer<String> output)
  • Method Details

    • publish

      public boolean publish(long current)
      Description copied from interface: IProgressPublisher
      Publish and render a new value for progress
      Parameters:
      current - new progress value
      Returns:
      true if progress string has changed