Exemple #1
0
		/// <exception cref="System.IO.IOException"></exception>
		public virtual void ReadFrom(Sharpen.IO.File file)
		{
			if (!file.Exists())
			{
				throw new IOException(Db4objects.Db4o.Internal.Messages.Get(41, file.GetAbsolutePath
					()));
			}
			i_length = (int)file.Length();
			CheckExt(file);
			if (i_stream.IsClient)
			{
				i_file = file;
				((IBlobTransport)i_stream).ReadBlobFrom(i_trans, this);
			}
			else
			{
				ReadLocal(file);
			}
		}