public class ByteFormat extends Format
Format.Field
Modifier and Type | Field and Description |
---|---|
private static DecimalFormat |
formatter |
private static String[] |
mags |
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).
|
Object |
parseObject(String source,
ParsePosition pos)
In this implementation, returns null always.
|
clone, format, formatToCharacterIterator, parseObject
private static final String[] mags
private static final DecimalFormat formatter
public String format(long bytes)
public StringBuffer format(Object obj, StringBuffer buf, FieldPosition pos)
public Object parseObject(String source, ParsePosition pos)
parseObject
in class Format
source
- pos
- Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.