コード例 #1
0
            /// <exception cref="System.IO.IOException"></exception>
            internal override WalkRemoteObjectDatabase.FileStream Open(string path)
            {
                URLConnection c = this._enclosing.s3.Get(this._enclosing.bucket, this.ResolveKey(
                                                             path));
                InputStream raw = c.GetInputStream();
                InputStream @in = this._enclosing.s3.Decrypt(c);
                int         len = c.GetContentLength();

                return(new WalkRemoteObjectDatabase.FileStream(@in, raw == @in ? len : -1));
            }