public class ByteFormat extends Format
Format.Field
Constructor and Description |
---|
ByteFormat() |
Modifier and Type | Method and Description |
---|---|
String |
format(long bytes)
Formats a long which represent a number of bytes.
|
StringBuffer |
format(Object obj,
StringBuffer buf,
FieldPosition pos)
Format the given object (must be a Long).
|
String |
formatKB(long kilobytes)
Formats a long which represent a number of kilobytes.
|
Object |
parseObject(String source,
ParsePosition pos)
In this implementation, returns null always.
|
clone, format, formatToCharacterIterator, parseObject
public String format(long bytes)
bytes
- the number of bytes to formatpublic String formatKB(long kilobytes)
kilobytes
- the number of kilobytes to formatpublic StringBuffer format(Object obj, StringBuffer buf, FieldPosition pos)
public Object parseObject(String source, ParsePosition pos)
parseObject
in class Format
source
- unused parameterpos
- unused parameterCopyright © 2003–2020 Ignite Realtime. All rights reserved.