org.apache.catalina.ssi

Class SSIFsize

Implemented Interfaces:
SSICommand

public final class SSIFsize
extends java.lang.Object
implements SSICommand

Implements the Server-side #fsize command

Version:
$Revision: 1.2.2.1 $, $Date: 2004/09/01 16:31:01 $

Authors:
Bip Thelin
Paul Speed
Dan Sandberg

Field Summary

protected static int
ONE_KILOBYTE
protected static int
ONE_MEGABYTE

Method Summary

protected String
formatSize(long size, String format)
String
padLeft(String str, int maxChars)
void
process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer)
String
repeat(char aChar, int numChars)

Field Details

ONE_KILOBYTE

protected static final int ONE_KILOBYTE

Field Value:
1024


ONE_MEGABYTE

protected static final int ONE_MEGABYTE

Field Value:
1048576

Method Details

formatSize

protected String formatSize(long size,
                            String format)


padLeft

public String padLeft(String str,
                      int maxChars)


process

public void process(SSIMediator ssiMediator,
                    String commandName,
                    String[] paramNames,
                    String[] paramValues,
                    PrintWriter writer)
Specified by:
process in interface SSICommand

See Also:
SSICommand


repeat

public String repeat(char aChar,
                     int numChars)


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.