static class AbstractMavenTransferListener.FileSizeFormat
extends java.lang.Object
#0.0
for numbers between 1 and 10
and ###0
for numbers between 10 and 1000+ by default.Modifier and Type | Class and Description |
---|---|
(package private) static class |
AbstractMavenTransferListener.FileSizeFormat.ScaleUnit |
Modifier and Type | Field and Description |
---|---|
private java.text.DecimalFormat |
largeFormat |
private java.text.DecimalFormat |
smallFormat |
Constructor and Description |
---|
FileSizeFormat(java.util.Locale locale) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(long size) |
java.lang.String |
format(long size,
AbstractMavenTransferListener.FileSizeFormat.ScaleUnit unit) |
java.lang.String |
format(long size,
AbstractMavenTransferListener.FileSizeFormat.ScaleUnit unit,
boolean omitSymbol) |
java.lang.String |
formatProgress(long progressedSize,
long size) |
private java.text.DecimalFormat smallFormat
private java.text.DecimalFormat largeFormat
public java.lang.String format(long size)
public java.lang.String format(long size, AbstractMavenTransferListener.FileSizeFormat.ScaleUnit unit)
public java.lang.String format(long size, AbstractMavenTransferListener.FileSizeFormat.ScaleUnit unit, boolean omitSymbol)
public java.lang.String formatProgress(long progressedSize, long size)