barcode4j 2.1.0

org.krysalis.barcode4j.cli
Class Main

java.lang.Object
  extended by org.krysalis.barcode4j.cli.Main

public class Main
extends java.lang.Object

Command-line interface.

Version:
$Id: Main.java,v 1.7 2010/10/05 06:55:40 jmaerki Exp $
Author:
Jeremias Maerki

Field Summary
static java.io.PrintStream stderr
          stderr for this application (default: System.err)
static java.io.PrintStream stdout
          stdout for this application (default: System.out)
 
Constructor Summary
Main()
           
 
Method Summary
static java.lang.String getVersion()
           
 void handleCommandLine(java.lang.String[] args)
          Handles the command line.
static void main(java.lang.String[] args)
          Main method.
 void printAppHeader()
          Prints the application header on the console.
static void setExitHandler(ExitHandler handler)
          Set an alternative exit handler here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stdout

public static java.io.PrintStream stdout
stdout for this application (default: System.out)


stderr

public static java.io.PrintStream stderr
stderr for this application (default: System.err)

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)
Main method.

Parameters:
args - commandline arguments

setExitHandler

public static void setExitHandler(ExitHandler handler)
Set an alternative exit handler here.

Parameters:
handler - the alternative exit handler

handleCommandLine

public void handleCommandLine(java.lang.String[] args)
Handles the command line. The method calls the exit handler upon completion.

Parameters:
args - the command line arguments

getVersion

public static java.lang.String getVersion()
Returns:
the Barcode4J version

printAppHeader

public void printAppHeader()
Prints the application header on the console. Ensures that this is only done once.


barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.