public class GrammarConverter extends Object
The input is read from a file if one is specified on the command-line, or otherwise from stdin. The input codec is determined, in this order, (a) from the --input-codec command-line argument if one is given, or (b) from the filename, if one is given and its extension can be resolved to an input codec. If no input codec can be determined, the script aborts.
The output is written to a file if one is specified with the
--output-file command-line argument, or otherwise to stdout.
The output codec is determined, in this order, (a) from the --output-codec
command-line argument if one is given; (b) from the output file name
if one was specified and its extension can be resolved to an output codec;
(c) the ToStringOutputCodec
if no other output codec can be
determined.
Constructor and Description |
---|
GrammarConverter() |
public static void main(String[] args) throws FileNotFoundException, IOException
FileNotFoundException
IOException
Copyright © 2017. All rights reserved.