Searched refs:byteCountToDisplaySize (Results 1 – 4 of 4) sorted by relevance
/external/apache-commons-io/src/test/java/org/apache/commons/io/ |
D | FileUtilsTest.java | 469 assertEquals("0 bytes", FileUtils.byteCountToDisplaySize(BigInteger.ZERO)); 470 assertEquals("1 bytes", FileUtils.byteCountToDisplaySize(BigInteger.ONE)); 471 assertEquals("1023 bytes", FileUtils.byteCountToDisplaySize(b1023)); 472 assertEquals("1 KB", FileUtils.byteCountToDisplaySize(KB1)); 473 assertEquals("1 KB", FileUtils.byteCountToDisplaySize(b1025)); 474 assertEquals("1023 KB", FileUtils.byteCountToDisplaySize(MB1.subtract(BigInteger.ONE))); 475 assertEquals("1 MB", FileUtils.byteCountToDisplaySize(MB1)); 476 assertEquals("1 MB", FileUtils.byteCountToDisplaySize(MB1.add(BigInteger.ONE))); 477 assertEquals("1023 MB", FileUtils.byteCountToDisplaySize(GB1.subtract(BigInteger.ONE))); 478 assertEquals("1 GB", FileUtils.byteCountToDisplaySize(GB1)); [all …]
|
/external/apache-commons-io/src/main/java/org/apache/commons/io/ |
D | FileUtils.java | 236 public static String byteCountToDisplaySize(final BigInteger size) { in byteCountToDisplaySize() method in FileUtils 273 public static String byteCountToDisplaySize(final long size) { in byteCountToDisplaySize() method in FileUtils 274 return byteCountToDisplaySize(BigInteger.valueOf(size)); in byteCountToDisplaySize() 293 public static String byteCountToDisplaySize(final Number size) { in byteCountToDisplaySize() method in FileUtils 294 return byteCountToDisplaySize(size.longValue()); in byteCountToDisplaySize()
|
/external/apache-commons-io/ |
D | RELEASE-NOTES.txt | 609 o IO-327: Add byteCountToDisplaySize(BigInteger). Thanks to ggregory. 677 o Use terabyte (TB), petabyte (PB) and exabyte (EB) in FileUtils.byteCountToDisplaySize(long size) … 870 * [IO-226 FileUtils.byteCountToDisplaySize() documentation corrections
|
/external/apache-commons-io/src/changes/ |
D | release-notes.vm | 639 o IO-327: Add byteCountToDisplaySize(BigInteger). Thanks to ggregory. 707 o Use terabyte (TB), petabyte (PB) and exabyte (EB) in FileUtils.byteCountToDisplaySize(long size) … 900 * [IO-226 FileUtils.byteCountToDisplaySize() documentation corrections
|