/** * Create a property file from an io.File object * * @deprecated Use load() method instead * @param io.File file * @return util.Properties * @throws io.IOException in case the file given does not exist */ public static function fromFile(File $file) { $self = new self($file->getURI()); $self->load($file->getInputStream()); return $self; }