com.palserv.XMidi
Class Util

java.lang.Object
  extended by com.palserv.XMidi.Util

public class Util
extends java.lang.Object

internal utilities

NOT FOR EXTERNAL USE

I have made it public because it contains some methods which should be included in the javadoc.


Constructor Summary
Util()
           
 
Method Summary
static CmdLineArgs getCmdLine(java.lang.String[] args)
          This routine parses "command line" arguments and returns a structure (class) containing the needed data.
static java.lang.Object getInstanceFromName(java.lang.String name)
          Get an instance of an object from its name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getInstanceFromName

public static java.lang.Object getInstanceFromName(java.lang.String name)
Get an instance of an object from its name.

Returns:
the object instance.

getCmdLine

public static CmdLineArgs getCmdLine(java.lang.String[] args)
This routine parses "command line" arguments and returns a structure (class) containing the needed data.

There are two kinds of arguments, options and non-options. Options begin with a hyphen and non-options don't. Options and non-options may be mixed together and options may be in any order. The first non-option is the input fileid. It is required, and should have a file extension of xmi (for XM) or mid (for MX). The second (and hopefully last) non-option is the (optional) output fileid. If it is not coded, we will use the input fileid, changing the file extension to mid (for XM) or xmi (for MX).

options:

Parameters:
args - - command line arguments (as in main)