public final class IOUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSilently(Closeable closeable)
Close a closeable object quietly, added because such method in APACHE-IO
has been deprecated
|
static String |
makeOsFilePathWithoutDuplications(File[] files)
Make file path appropriate for current OS.
|
static String |
makeOsFilePathWithoutDuplications(String... paths)
Make file path from provided strings
|
static int |
printTextProgressBar(String text,
long value,
long maxValue,
int progressBarWidth,
int lastValue)
Print text progress bar.
|
public static int printTextProgressBar(@Nonnull String text, long value, long maxValue, int progressBarWidth, int lastValue)
text - title of the barvalue - value to be renderedmaxValue - max value to be renderedprogressBarWidth - width of barlastValue - value which was rendered last time, if the same then it will not be rendered@Nonnull public static String makeOsFilePathWithoutDuplications(@Nonnull @MayContainNull File[] files)
files - files which will be added in the path@Nonnull public static String makeOsFilePathWithoutDuplications(@Nonnull @MayContainNull String... paths)
paths - path elementsCopyright © 2016–2019 Igor Maznitsa. All rights reserved.