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)
public String formatKB(long kilobytes)
public StringBuffer format(Object obj, StringBuffer buf, FieldPosition pos)
public Object parseObject(String source, ParsePosition pos)
parseObject
in class Format
source
- pos
- Copyright © 2003-2008 Jive Software.