Package org.apache.maven.cling.transfer
Class FileSizeFormat
java.lang.Object
org.apache.maven.cling.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.-
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) void
format
(MessageBuilder builder, long size) void
format
(MessageBuilder builder, long size, FileSizeFormat.ScaleUnit unit) formatProgress
(long progressedSize, long size) void
formatProgress
(StringBuilder builder, long progressedSize, long size) void
formatRate
(MessageBuilder builder, double rate)
-
Constructor Details
-
FileSizeFormat
public FileSizeFormat()
-
-
Method Details
-
format
-
format
-
format
-
format
-
format
-
format
-
format
-
formatRate
-
formatProgress
-
formatProgress
-