|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.umist.co.brailletrans.utils.Maker | +--uk.ac.umist.co.brailletrans.utils.MakeLegacy
Constructs a legacy language rules table file in machine format from text format.
Field Summary | |
static int |
DISK_ERROR
Error code for a failure to complete a program caused by a I/O fault. |
static int |
ESCAPE_CHARACTER_1
Character indicating the start of an escape character for encoding characters of values 128 - 255 in ASCII language files. |
static int |
ESCAPE_CHARACTER_2
Character indicating the second part of an escape character for encoding characters of values 128 - 255 in ASCII language files. |
static int |
LANGUAGE_ERROR
Error code for a failure using a Language. |
static int |
SUCCESS
Error code for successful completion of a Maker program. |
static char |
TABLE_DELIMITER
The ASCII character indicating the end of the translation rules. |
Constructor Summary | |
MakeLegacy()
|
Method Summary | |
static int[] |
getEscapedCharacter(java.io.BufferedInputStream inFile)
If a '\x' character is encountered in a language human file it might be an escape sequence for |
static void |
main(java.lang.String[] args)
Command-line access to conversion process. |
static void |
make(java.lang.String inputFilename,
java.lang.String outputFilename)
Performs actual conversion of CON files to DAT files. |
static int |
skipComments(java.io.BufferedInputStream fileIn)
Skips over comment lines in the language files. |
static java.lang.String |
skipComments(java.io.BufferedReader fileIn)
Skips over comment lines in the language files. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ESCAPE_CHARACTER_1
public static final int ESCAPE_CHARACTER_2
public static final int SUCCESS
public static final int DISK_ERROR
public static final int LANGUAGE_ERROR
public static final char TABLE_DELIMITER
Constructor Detail |
public MakeLegacy()
Method Detail |
public static void main(java.lang.String[] args)
args
- The array of Strings passed as command-line arguments. The arguments are:
public static void make(java.lang.String inputFilename, java.lang.String outputFilename)
inputFilename
- Full path and name of CON file to process.outputFilename
- Full path and name of DAT file to produce.public static int skipComments(java.io.BufferedInputStream fileIn)
To be explicit: the method halts only when one of the following is met:
fileIn
- BufferedInputStream to the file being read from.public static java.lang.String skipComments(java.io.BufferedReader fileIn)
fileIn
- BufferedInputStream
for the file being read.String
containing the first non-comment line.public static int[] getEscapedCharacter(java.io.BufferedInputStream inFile)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |