/// <summary> /// Import a stream into a database. Throws an exception if an error /// occurs. Do not call the base class method when overriding it. /// </summary> /// <param name="pwStorage">Data storage into which the data will be imported.</param> /// <param name="sInput">Input stream to read the data from.</param> /// <param name="slLogger">Status logger. May be <c>null</c>.</param> public virtual void Import(PwDatabase pwStorage, Stream sInput, IStatusLogger slLogger) { GxiProfile p = this.XmlProfile; if (p != null) { if (pwStorage == null) { throw new ArgumentNullException("pwStorage"); } GxiImporter.Import(pwStorage.RootGroup, sInput, p, pwStorage, slLogger); return; } throw new NotSupportedException(); }