procope.userinterface.cmdline
Class Commons

java.lang.Object
  extended by procope.userinterface.cmdline.Commons

public class Commons
extends Object


Constructor Summary
Commons()
           
 
Method Summary
static void checkForMappings(CommandLineArguments arguments)
           
static void closeOutput(OutputStream outstream)
           
static String formatList(String[] list)
           
static InputStream getInputStream(String file)
           
static String[] getList(String... list)
           
static OutputStream getOutput(CommandLineArguments arguments)
           
static boolean inList(String toCheck, String[] list)
           
static Object inputUserParameter(UserParameter para)
           
static boolean isInt(String str)
           
static boolean isNumeric(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Commons

public Commons()
Method Detail

formatList

public static String formatList(String[] list)

getList

public static String[] getList(String... list)

inList

public static boolean inList(String toCheck,
                             String[] list)

getOutput

public static OutputStream getOutput(CommandLineArguments arguments)

getInputStream

public static InputStream getInputStream(String file)
                                  throws IOException
Throws:
IOException

closeOutput

public static void closeOutput(OutputStream outstream)

isNumeric

public static boolean isNumeric(String str)

isInt

public static boolean isInt(String str)

checkForMappings

public static void checkForMappings(CommandLineArguments arguments)

inputUserParameter

public static Object inputUserParameter(UserParameter para)