
org.xblackcat.sjpu.cli.progress.BytesProgressPublisher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sjpu-cli-helper Show documentation
Show all versions of sjpu-cli-helper Show documentation
Library for holding common logic to work with CLI: parsing parameters to target objects
The newest version!
package org.xblackcat.sjpu.cli.progress;
import java.util.function.Consumer;
public class BytesProgressPublisher extends AProgressPublisher {
public BytesProgressPublisher(Consumer output) {
super(output);
}
@Override
public boolean publish(long current) {
output.accept(String.format("\rProcessed %d bytes", current));
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy