sears.tools
Class InfoPlist

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

public class InfoPlist
extends java.lang.Object

This class gives method 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 getExecutablePath(java.lang.String pathOfApp)
          this method allows to get back the path of the real executable file in .app bundle.
 
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)
                                          throws java.io.FileNotFoundException,
                                                 java.io.IOException
this method allows to get back the path of the real executable file in .app bundle.
with the path of .app bundle given in parameter.
This method only works with an Info.plist file formatted like Mac OS X does.

Parameters:
pathOfApp - the path of the .app bundle.
Returns:
a String, path of the executable in .app bundle, null if it isn't found (Non conform .plist...)
Throws:
java.io.FileNotFoundException - Info.plist wasn't found.
java.io.IOException - access error when reading file.