lazyj.page.tags
Class Size

java.lang.Object
  extended by lazyj.page.tags.Size
All Implemented Interfaces:
StringFormat

public final class Size
extends java.lang.Object
implements StringFormat

size takes the integer value and returns the size (in bytes) indicated by the value.

Since:
2006-10-13
Author:
costing
See Also:
DDot, Dot

Constructor Summary
Size()
           
 
Method Summary
 java.lang.String format(java.lang.String sTag, java.lang.String sOption, java.lang.String s)
          Use this to display file sizes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Size

public Size()
Method Detail

format

public java.lang.String format(java.lang.String sTag,
                               java.lang.String sOption,
                               java.lang.String s)
Use this to display file sizes. You should provide the file size in bytes as the value to this tag.

Specified by:
format in interface StringFormat
Parameters:
sTag - tag name, ignored
sOption - always "size"
s - string to format, the file size in bytes
Returns:
human-friendly size
See Also:
Format.size(long)