public final class SSIFsize extends 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 String |
formatSize(long size,
String format) |
String |
padLeft(String str,
int maxChars) |
long |
process(SSIMediator ssiMediator,
String commandName,
String[] paramNames,
String[] paramValues,
PrintWriter writer)
Write the output of the command to the writer.
|
String |
repeat(char aChar,
int numChars) |
protected static final int ONE_KILOBYTE
protected static final int ONE_MEGABYTE
public long process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer)
SSICommand
process
in interface SSICommand
ssiMediator
- the ssi mediatorcommandName
- the name of the actual command ( ie. echo )paramNames
- The parameter namesparamValues
- The parameter valueswriter
- the writer to output toSSICommand
public String repeat(char aChar, int numChars)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.