|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.noaa.mptools.MPRunner
A java wrapper around "Metadata Parser" also known as mp written by Peter Sweitzer.
| Constructor Summary | |
MPRunner()
Creates a new instance of MPRunner |
|
| Method Summary | |
java.lang.String |
runMPWithFileName(java.lang.String mpFile)
This will run mp against the specified file. |
java.lang.String |
runMPWithXMLString(java.lang.String xml)
this creates a file containing the specified string which is then parsed by mp |
void |
setAliasFile(java.lang.String alias)
Sets the location and name of the alias file. |
void |
setConfigFile(java.lang.String conf)
Sets the location and name of the conrfig file to use with mp. |
void |
setMPCommand(java.lang.String str)
Sets the location and the name of the mp command. |
void |
setTempDir(java.lang.String tDir)
Set the directory to place the temporary files generated by this class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MPRunner()
| Method Detail |
public void setTempDir(java.lang.String tDir)
tDir - The relative or specific path.public void setMPCommand(java.lang.String str)
str - The complete path to mp and the mp command. Or the relative path and the mp
command.public void setConfigFile(java.lang.String conf)
conf - The config file.public void setAliasFile(java.lang.String alias)
alias - the alias file.
public java.lang.String runMPWithFileName(java.lang.String mpFile)
throws MPException
mpFile - full path to the xmlFile to be parsed
MPException - If something goes wrong.
public java.lang.String runMPWithXMLString(java.lang.String xml)
throws MPException
xml - The xml of the record to run against mp.
MPException - If something goes wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||