public static NSObject parse(File f) throws IOException, PropertyListFormatException, ParseException, ParserConfigurationException, SAXException {
  FileInputStream fis=new FileInputStream(f);
  int type=determineType(fis);
  fis.close();
switch (type) {
case TYPE_BINARY:
    return BinaryPropertyListParser.parse(f);
case TYPE_XML:
  return XMLPropertyListParser.parse(f);
case TYPE_ASCII:
return ASCIIPropertyListParser.parse(f);
default :
throw new PropertyListFormatException("The given file is not a property list of a supported format.");
}
}

public static NSObject parse ( File f ) throws IOException , PropertyListFormatException , ParseException , ParserConfigurationException , SAXException { FileInputStream fis = new FileInputStream ( f ) ; int type = determineType ( fis ) ; fis . close ( ) ; switch ( type ) { case TYPE_BINARY : return BinaryPropertyListParser . parse ( f ) ; case TYPE_XML : return XMLPropertyListParser . parse ( f ) ; case TYPE_ASCII : return ASCIIPropertyListParser . parse ( f ) ; default : throw new PropertyListFormatException ( "The given file is not a property list of a supported format." ) ; } }
parses a property list from a file .
