jj2000.j2k.decoder
Class CmdLnDecoder

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

public class CmdLnDecoder
extends java.lang.Object

This class run the JJ2000's decoder from the command line interface. It parses command-line arguments to fill a ParameterList object which will be provided to an Decoder object.


Field Summary
private  Decoder dec
          The current Decoder object
private  ParameterList defpl
          The default parameter list (arguments)
private  ParameterList pl
          The parameter list (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, registerNatives, toString, wait, wait, wait
 

Field Detail

pl

private ParameterList pl
The parameter list (arguments)

defpl

private ParameterList defpl
The default parameter list (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 creates a CmdLnDecoder object, initializes it, and performs the decoding.
Parameters:
argv - The command line arguments