|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.palserv.XMidi.Util
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 | |
CmdLineArgs |
getCmdLine(java.lang.String[] args)
This routine parses "command line" arguments and returns a structure (class) containing the needed data. |
org.w3c.dom.Document |
getDoc(java.lang.String fid,
boolean doParse,
java.lang.String parserName)
This routine is used to invoke the external parser helper class by name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Util()
Method Detail |
public CmdLineArgs getCmdLine(java.lang.String[] args)
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:
This is the name of the external parser class. If the -q option is coded, then the parser_id is the (complete) package-name.class-name for the class. If the -q option is not coded, then the parser_id is the name of a class in this (com.palserv.XMidi) package, and should be coded without the package name.
If coded, this option means that the parser_id coded in the "-p" option is fully qualified. If not coded, this option means that the parser_id coded in the "-p" is part of this package. The correct package identifier will be prepended to the string.
The fully qualified name of a file which will be created to contain debugging data for the most recent run. As the name implies this flag should only be used when the package is being tested. The output can be quite large, and I am sure that there is a performance penalty for using this feature.
If coded, then include "verbose" attributes. This includes NAME and REGISTER on the NOTE_OFF, NOTE_ON, and AFTER tags, and the NAME on the CONTROL tag.
String[]
- args - command line arguments (as in main)public org.w3c.dom.Document getDoc(java.lang.String fid, boolean doParse, java.lang.String parserName)
String
- fid - name of the file to parseboolean
- doParse - if true, invoke parseXML to parse
the file; if false, invoke getNewDoc to obtain new (empty) Document
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |