Package org.apache.maven.cli.transfer
Class AbstractMavenTransferListener.FileSizeFormat
java.lang.Object
org.apache.maven.cli.transfer.AbstractMavenTransferListener.FileSizeFormat
- Enclosing class:
- AbstractMavenTransferListener
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
Nested ClassesModifier and TypeClassDescription(package private) static enum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat
(long size) format
(long size, AbstractMavenTransferListener.FileSizeFormat.ScaleUnit unit) format
(long size, AbstractMavenTransferListener.FileSizeFormat.ScaleUnit unit, boolean omitSymbol) formatProgress
(long progressedSize, long size)
-
Field Details
-
smallFormat
-
largeFormat
-
-
Constructor Details
-
FileSizeFormat
FileSizeFormat(Locale locale)
-
-
Method Details
-
format
-
format
-
format
public String format(long size, AbstractMavenTransferListener.FileSizeFormat.ScaleUnit unit, boolean omitSymbol) -
formatProgress
-