All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xblackcat.sjpu.cli.progress.BytesProgressPublisher Maven / Gradle / Ivy

Go to download

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