Package org.apache.maven.cli.transfer
Class FileSizeFormat
java.lang.Object
org.apache.maven.cli.transfer.FileSizeFormat
Formats file size with the associated SI prefix
(GB, MB, kB) and using the patterns
#0.0
for numbers between 1 and 10
and ###0
for numbers between 10 and 1000+ by default.- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformat
(long size) format
(long size, FileSizeFormat.ScaleUnit unit) format
(long size, FileSizeFormat.ScaleUnit unit, boolean omitSymbol) void
format
(StringBuilder builder, long size) void
format
(StringBuilder builder, long size, FileSizeFormat.ScaleUnit unit) formatProgress
(long progressedSize, long size) void
formatProgress
(StringBuilder builder, long progressedSize, long size)
-
Constructor Details
-
FileSizeFormat
-
-
Method Details
-
format
-
format
-
format
-
format
-
format
-
formatProgress
-
formatProgress
-