jj2000.j2k.decoder
Class CmdLnDecoder

java.lang.Object
  |
  +--jj2000.j2k.decoder.CmdLnDecoder

public class CmdLnDecoder
extends java.lang.Object

This class runs the JJ2000 decoder from the command line interface. It parses command-line arguments in order to fill a ParameterList object. Then this one is provided to a Decoder object.


Field Summary
private  Decoder dec
          The current Decoder object
private  ParameterList defpl
          The default parameter list (with modules arguments)
private  ParameterList pl
          The parameter list (with modules arguments)
 
Constructor Summary
CmdLnDecoder(java.lang.String[] argv)
          Instantiates a command line decoder object, width the 'argv' command line arguments.
 
Method Summary
static void main(java.lang.String[] argv)
          The starting point of the program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pl

private ParameterList pl
The parameter list (with modules arguments)


defpl

private ParameterList defpl
The default parameter list (with modules arguments)


dec

private Decoder dec
The current Decoder object

Constructor Detail

CmdLnDecoder

public CmdLnDecoder(java.lang.String[] argv)
Instantiates a command line decoder object, width the 'argv' command line arguments. It also initializes the default parameters. If the argument list is empty an IllegalArgumentException is thrown. If an error occurs while parsing the arguments error messages are written to stderr and the run exit code is set to non-zero, see getExitCode()

Throws:
java.lang.IllegalArgumentException - If 'argv' is empty
See Also:
Decoder.getExitCode()
Method Detail

main

public static void main(java.lang.String[] argv)
The starting point of the program. It calls the constructor with the command line options in a String array.

Parameters:
argv - The command line parameters