sears.tools
Class InfoPlist

java.lang.Object
  extended by sears.tools.InfoPlist

public class InfoPlist
extends java.lang.Object

This class gives methods for read information into an Info.plist XML file (without a parser)
on a Mac OS X system.


Constructor Summary
InfoPlist()
           
 
Method Summary
static java.lang.String getBundleExecutableName(java.lang.String pathOfApp)
          this method returns the name of the executable file contains in a .app bundle
with the path of .app bundle given in parameter.
static java.lang.String getExecutablePath(java.lang.String pathOfApp)
          this method returns the path of the executable file contains in a .app bundle
with the path of .app bundle given in parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoPlist

public InfoPlist()
Method Detail

getExecutablePath

public static java.lang.String getExecutablePath(java.lang.String pathOfApp)
this method returns the path of the executable file contains in a .app bundle
with the path of .app bundle given in parameter.

Parameters:
pathOfApp - the path of the .app bundle.
Returns:
a String, path of the executable contains in .app bundle,
null if it isn't found or if the method was called out of Mac OS X system.

getBundleExecutableName

public static java.lang.String getBundleExecutableName(java.lang.String pathOfApp)
this method returns the name of the executable file contains in a .app bundle
with the path of .app bundle given in parameter.

Parameters:
pathOfApp - the path of the .app bundle.
Returns:
the name of the executable file,
null if it isn't found or if the method was called out of Mac OS X system.