public static Wallet loadFromFile(File f) throws UnreadableWalletException {
  try {
    FileInputStream stream=null;
    try {
      stream=new FileInputStream(f);
      return loadFromFileStream(stream);
    }
  finally {
      if (stream != null)       stream.close();
    }
  }
 catch (  IOException e) {
    throw new UnreadableWalletException("Could not open file",e);
  }
}

public static Wallet loadFromFile ( File f ) throws UnreadableWalletException { try { FileInputStream stream = null ; try { stream = new FileInputStream ( f ) ; return loadFromFileStream ( stream ) ; } finally { if ( stream != null ) stream . close ( ) ; } } catch ( IOException e ) { throw new UnreadableWalletException ( "Could not open file" , e ) ; } }
returns a wallet deserialized from the given file .
