Class FileSizeFormat

java.lang.Object
org.apache.maven.cli.transfer.FileSizeFormat

@Deprecated public class FileSizeFormat extends Object
Deprecated.
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:
  • Constructor Details

    • FileSizeFormat

      public FileSizeFormat()
      Deprecated.
  • Method Details

    • format

      public String format(long size)
      Deprecated.
    • format

      public String format(long size, FileSizeFormat.ScaleUnit unit)
      Deprecated.
    • format

      public String format(long size, FileSizeFormat.ScaleUnit unit, boolean omitSymbol)
      Deprecated.
    • format

      public void format(StringBuilder builder, long size)
      Deprecated.
    • format

      public void format(StringBuilder builder, long size, FileSizeFormat.ScaleUnit unit)
      Deprecated.
    • format

      public void format(org.apache.maven.api.services.MessageBuilder builder, long size)
      Deprecated.
    • format

      public void format(org.apache.maven.api.services.MessageBuilder builder, long size, FileSizeFormat.ScaleUnit unit)
      Deprecated.
    • formatProgress

      public String formatProgress(long progressedSize, long size)
      Deprecated.
    • formatProgress

      public void formatProgress(StringBuilder builder, long progressedSize, long size)
      Deprecated.