public class FileSizeTransformer extends Object implements net.sf.jguiraffe.transform.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,
net.sf.jguiraffe.transform.TransformerContext ctx)
Performs the transformation.
|
public Object transform(Object o, net.sf.jguiraffe.transform.TransformerContext ctx) throws Exception
transform
in interface net.sf.jguiraffe.transform.Transformer
o
- the object to transformctx
- the transformer contextException
- if an error occursCopyright © 2016 The JGUIraffe Team. All Rights Reserved.