jj2000.j2k.encoder
Class CmdLnEncoder

java.lang.Object
  |
  +--jj2000.j2k.encoder.CmdLnEncoder

public class CmdLnEncoder
extends java.lang.Object

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


Field Summary
private  ParameterList defpl
          The default parameter list (arguments)
private  Encoder enc
          The current encoder object
private  ParameterList pl
          The parameter list (arguments)
 
Constructor Summary
CmdLnEncoder(java.lang.String[] argv)
          Instantiates a command line encoder object, with 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 (arguments)


defpl

private ParameterList defpl
The default parameter list (arguments)


enc

private Encoder enc
The current encoder object

Constructor Detail

CmdLnEncoder

public CmdLnEncoder(java.lang.String[] argv)
Instantiates a command line encoder object, with 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:
Encoder.getExitCode()
Method Detail

main

public static void main(java.lang.String[] argv)
The starting point of the program. It creates a CmdLnEncoder object, initializes it, and performs coding.

Parameters:
argv - The command line arguments