uk.ac.bham.gloss
Class TestTokenizer

java.lang.Object
  extended by uk.ac.bham.gloss.TestTokenizer

public class TestTokenizer
extends java.lang.Object

This class provides a simple command-line test utility that reads tokens from a file and writes them to standard output. The class of tokens accepted can be altered. Copyright Richard Kaye 2007, Licence GPL


Constructor Summary
TestTokenizer()
           
 
Method Summary
static void main(java.lang.String[] args)
          main: called from the console.
static void testTokenizer(java.lang.String[] args)
          This is the main command line.
static void testTokenizer(java.lang.String[] args, MessageCallBack err)
          Main command: optional first argument is the token class, main argument is the file to be read.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestTokenizer

public TestTokenizer()
Method Detail

main

public static void main(java.lang.String[] args)
main: called from the console. This simply calls testTokenizer(args) and catches any exceptions, and tries to print them nicely in a helpful way to the standard error stream.


testTokenizer

public static void testTokenizer(java.lang.String[] args)
                          throws java.io.FileNotFoundException,
                                 java.io.UnsupportedEncodingException,
                                 GlossException
This is the main command line. Error messages are sent to standard error stream.

Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
GlossException

testTokenizer

public static void testTokenizer(java.lang.String[] args,
                                 MessageCallBack err)
                          throws java.io.FileNotFoundException,
                                 java.io.UnsupportedEncodingException,
                                 GlossException
Main command: optional first argument is the token class, main argument is the file to be read.

Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
GlossException