uk.ac.umist.co.brailletrans.utils
Class MakeLanguageUnicode
java.lang.Object
uk.ac.umist.co.brailletrans.utils.Maker
uk.ac.umist.co.brailletrans.utils.MakeLanguageUnicode
- public class MakeLanguageUnicode
- extends Maker
Creates Unicode version Language files as LanguageUnicode objects from
the simple text editable version. See an existing language file for examples
of layout. Some constraints: comment lines begin with ':' characters, and
the language file must begin with two comment lines. The language file to
be converted must be encoded in big-endian network-order Unicode.
Copyright 1999, 2004 Alasdair King. This program is free software
under the terms of the GNU General Public License.
Method Summary |
static void |
main(java.lang.String[] args)
Command-line interface to translation function. |
static void |
make(java.lang.String inputFilename,
java.lang.String outputFilename)
Turns the text-format human-editable inputFilename file
into the LanguageUnicode serialized object outputFilename
. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(java.lang.String[] args)
- Command-line interface to translation function. Takes two arguments, both
Strings
the file to convert from and the file to convert to.
In fact, it calls the make
methods of MakeLegacy
and MakeLanguageUnicode
- Parameters:
args
- args[0] is the input filename, args[1] is the output filename
make
public static void make(java.lang.String inputFilename,
java.lang.String outputFilename)
- Turns the text-format human-editable
inputFilename
file
into the LanguageUnicode
serialized object outputFilename
.
- Parameters:
inputFilename
- The path and filename for the language to convert
except for the filename extension, which will be appended by the program.outputFilename
- The path and filename for the language to be
produced, except for the filename extension, which will be appended by the
program.