public class FileSizeTransformer extends Object implements Transformer
A specialized transformer for formatting file sizes.
This transformer obtains the size of a file in kilobytes.
| Constructor and Description |
|---|
FileSizeTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
transform(Object o,
TransformerContext ctx)
Performs the transformation.
|
public Object transform(Object o, TransformerContext ctx) throws Exception
transform in interface Transformero - the object to transformctx - the transformer contextException - if an error occursCopyright © 2016 The JGUIraffe Team. All rights reserved.