In your zt-zip command line progress bar demo,
I can see the method to get the progress of zipping a folder
ZipUtil.pack(tmpDir, zipArchive, new NameMapper() {
@Override
public String map(String name) {
progress.add(name);
String progressStr = generateProgressStr(progress, 30);
// the carriage return will return the cursor to the
// start of the line
System.out.print("|"+progressStr+"\r \n");
return name;
}
});
It can show the progress zipping the folder properly.
However , in the to be unzipped file, we do not have the interface NameMapper just like the to be unzipped folder, what should I do to get the progress of unzipping file correctly?
In your zt-zip command line progress bar demo,
I can see the method to get the progress of zipping a folder
It can show the progress zipping the folder properly.
However , in the to be unzipped file, we do not have the interface NameMapper just like the to be unzipped folder, what should I do to get the progress of unzipping file correctly?