alice.util
Class Tools

java.lang.Object
  extended byalice.util.Tools

public class Tools
extends java.lang.Object

miscellaneous static services


Constructor Summary
Tools()
           
 
Method Summary
static java.lang.String getOpt(java.lang.String[] args, java.lang.String prefix)
          give a command line argument list, this method gets the option of the specified prefix
static boolean isOpt(java.lang.String[] args, java.lang.String prefix)
          give a command line argument list, this method tests for the presence of the option of the specified prefix
static java.lang.String loadText(java.io.InputStream is)
          loads a text file from an InputStream
static java.lang.String loadText(java.lang.String fileName)
          loads a text file and returns its content as string
static java.lang.String removeApices(java.lang.String st)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Method Detail

loadText

public static java.lang.String loadText(java.lang.String fileName)
                                 throws java.io.IOException
loads a text file and returns its content as string

Throws:
java.io.IOException

loadText

public static java.lang.String loadText(java.io.InputStream is)
                                 throws java.io.IOException
loads a text file from an InputStream

Throws:
java.io.IOException

getOpt

public static java.lang.String getOpt(java.lang.String[] args,
                                      java.lang.String prefix)
give a command line argument list, this method gets the option of the specified prefix


isOpt

public static boolean isOpt(java.lang.String[] args,
                            java.lang.String prefix)
give a command line argument list, this method tests for the presence of the option of the specified prefix


removeApices

public static java.lang.String removeApices(java.lang.String st)


DEIS, Universita' di Bologna, Sede di Cesena