de.bsd.x2svg
Class X2Svg

java.lang.Object
  extended by de.bsd.x2svg.X2Svg

public class X2Svg
extends java.lang.Object

Main class of X2Svg. This is called from the command line.

Author:
hwr@pilhuhn.de

Constructor Summary
X2Svg()
           
 
Method Summary
private  void handleOutputConversion(RuntimeParameters p, java.lang.String arg)
          Handle option -c [filename.suffix][:type] on the command line parameters.
static void main(java.lang.String[] args)
          Main - to be called to start the show
private  RuntimeParameters parseCommandline(java.lang.String[] args)
          Parse the passed command line
private static void usage()
          Display usage of the program and exit afterwards.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X2Svg

public X2Svg()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main - to be called to start the show

Parameters:
args - command line arguments
Throws:
java.lang.Exception - if anything goes wrong

parseCommandline

private RuntimeParameters parseCommandline(java.lang.String[] args)
Parse the passed command line

Parameters:
args - The command line arguments
Returns:
an initialized Parameter object

handleOutputConversion

private void handleOutputConversion(RuntimeParameters p,
                                    java.lang.String arg)
Handle option -c [filename.suffix][:type] on the command line parameters. Input is one combination of filename and type. It is also allowed that the filename is a directory only in which case the output files are relative to that directory.

Parameters:
p - parameters object to store the result
arg - the passed argument of option -c

usage

private static void usage()
Display usage of the program and exit afterwards.



x2svg version 1.2.1