org.apache.catalina.ssi

Class SSIFsize

public final class SSIFsize extends Object implements SSICommand

Implements the Server-side #fsize command

Version: $Revision: 531303 $, $Date: 2007-04-23 02:24:01 +0200 (Mon, 23 Apr 2007) $

Author: Bip Thelin Paul Speed Dan Sandberg David Becker

Field Summary
protected static intONE_KILOBYTE
protected static intONE_MEGABYTE
Method Summary
protected StringformatSize(long size, String format)
StringpadLeft(String str, int maxChars)
longprocess(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer)
Stringrepeat(char aChar, int numChars)

Field Detail

ONE_KILOBYTE

protected static final int ONE_KILOBYTE

ONE_MEGABYTE

protected static final int ONE_MEGABYTE

Method Detail

formatSize

protected String formatSize(long size, String format)

padLeft

public String padLeft(String str, int maxChars)

process

public long process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer)

See Also: SSICommand

repeat

public String repeat(char aChar, int numChars)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.