OpenInput() public method

public OpenInput ( string id ) : Stream
id string
return Stream
 protected void CopyStoreToTestDir(MockStore store)
 {
     foreach (string commit in store.Commits)
     {
         if (store.Has(commit)) /* Well it might have been deleted */
         {
             using (Stream input = store.OpenInput(commit))
             using (FileStream output = new FileStream(TestDir + commit, FileMode.Create))
             {
                 CopyStream(input, output);
             }
         }
     }
 }
Beispiel #2
0
 protected void CopyStoreToTestDir(MockStore store)
 {
     foreach (string commit in store.Commits)
     {
         if (store.Has(commit)) /* Well it might have been deleted */
         {
             using (Stream input = store.OpenInput(commit))
                 using (FileStream output = new FileStream(TestDir + commit, FileMode.Create))
                 {
                     CopyStream(input, output);
                 }
         }
     }
 }