ks.protocol
Class WhoCommand

java.lang.Object
  extended byks.common.ArgumentList
      extended byks.common.command.Command
          extended byks.protocol.WhoCommand
All Implemented Interfaces:
java.io.Serializable

public class WhoCommand
extends Command

Command to get full list of all users registered for the system.

See Also:
Serialized Form

Field Summary
static int colSize
          Size of each column.
static java.lang.String header
          Header of WHO output.
static char LOGGED_IN_CHAR
          Attributes for users.
static int numInRow
          How many names per row.
 
Constructor Summary
WhoCommand()
          Default WhoCommand constructor.
 
Method Summary
static java.lang.String formatRow(java.lang.String[] names)
          Format one line of output given Enumeration of users.
 
Methods inherited from class ks.common.command.Command
formatString, isError, isQuittable, setQuittable, toString
 
Methods inherited from class ks.common.ArgumentList
addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, addArgMulti, clearArg, clearArg, clearArgMulti, clearArgMulti, getArg, getArg, getArgMulti, getArgMulti, multiArgs, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, removeArgMulti, setArg, setArg, singleArgs
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

header

public static final java.lang.String header
Header of WHO output.

See Also:
Constant Field Values

numInRow

public static final int numInRow
How many names per row.

See Also:
Constant Field Values

colSize

public static final int colSize
Size of each column.

See Also:
Constant Field Values

LOGGED_IN_CHAR

public static final char LOGGED_IN_CHAR
Attributes for users.

See Also:
Constant Field Values
Constructor Detail

WhoCommand

public WhoCommand()
Default WhoCommand constructor.

Method Detail

formatRow

public static final java.lang.String formatRow(java.lang.String[] names)
Format one line of output given Enumeration of users.

Parameters:
names - String[] names to fit on a row.
Returns:
String formatted string.