|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.umist.co.brailletrans.utils.Maker
Provides functions and constants for the Make programs that produce formatted machine-readable language files from their corresponding human-editable data files.
Copyright 1999, 2004 Alasdair King. This program is free software under the terms of the GNU General Public License.
uk.ac.umist.co.brailletrans.Language
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. |
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 a 256-character set value. |
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
Method Detail |
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)
inFile
- The file being read from.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |