public final class SSIFsize extends java.lang.Object implements SSICommand
| Modifier and Type | Field and Description | 
|---|---|
| protected static int | ONE_KILOBYTE | 
| protected static int | ONE_MEGABYTE | 
| Constructor and Description | 
|---|
| SSIFsize() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected java.lang.String | formatSize(long size,
java.lang.String format) | 
| java.lang.String | padLeft(java.lang.String str,
int maxChars) | 
| long | process(SSIMediator ssiMediator,
java.lang.String commandName,
java.lang.String[] paramNames,
java.lang.String[] paramValues,
java.io.PrintWriter writer)Write the output of the command to the writer. | 
| java.lang.String | repeat(char aChar,
int numChars) | 
protected static final int ONE_KILOBYTE
protected static final int ONE_MEGABYTE
public long process(SSIMediator ssiMediator, java.lang.String commandName, java.lang.String[] paramNames, java.lang.String[] paramValues, java.io.PrintWriter writer)
SSICommandprocess in interface SSICommandssiMediator - the ssi mediatorcommandName - the name of the actual command ( ie. echo )paramNames - The parameter namesparamValues - The parameter valueswriter - the writer to output toSSICommandpublic java.lang.String repeat(char aChar,
                      int numChars)
public java.lang.String padLeft(java.lang.String str,
                       int maxChars)
protected java.lang.String formatSize(long size,
                          java.lang.String format)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.