public static ETAPrinter init(String elementName, long totalElementsToProcess, OutputStream stream, boolean closeStream) {
        ETAPrinter printer = new ETAPrinter(elementName, totalElementsToProcess, DateTime.now(), stream, closeStream);
        printer.update(0);
        return printer;
    }
public static ETAPrinter init ( String elementName , long totalElementsToProcess , OutputStream stream , boolean closeStream ) { ETAPrinter printer = new ETAPrinter ( elementName , totalElementsToProcess , DateTime . now ( ) , stream , closeStream ) ; printer . update ( 0 ) ; return printer ; }
Initializes a progress bar.

@param elementName            the name of the elements that are processed. It is used to display the speed.
@param totalElementsToProcess the total number of items that are going to be processed.
@param stream                 the {@link java.io.OutputStream} where the progress bar will be printed
@param closeStream            true if the stream has to be closed at the end of the process

@return the initialized {@link com.vdurmont.etaprinter.ETAPrinter}