Print

Print


Commit in lcsim/src/org/lcsim/recon/emid/hmatrix on MAIN
HMatrix.java+211.1 -> 1.2
added create method which uses InputStream to accomodate ConditionsManager.

lcsim/src/org/lcsim/recon/emid/hmatrix
HMatrix.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- HMatrix.java	24 Jun 2005 18:11:01 -0000	1.1
+++ HMatrix.java	28 Jun 2005 05:29:23 -0000	1.2
@@ -130,6 +130,7 @@
             }
         }   
     }
+      
     
     /**
      * Calculates the chi-squared for the measurement compared to
@@ -441,6 +442,26 @@
         return null;
     }
     
+    public static HMatrix create(InputStream in)
+    {
+
+            try
+            {
+                BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(in));
+                HMatrix hm = create(bufferedreader);
+                bufferedreader.close();
+                return hm;
+            }
+            catch(IOException _ex)
+            {
+                System.err.println("HMatrixBuilder::read -> Error reading HMatrix from input reader.");
+                System.exit(0);
+            }
+           return null;
+    }      
+    
+    
+    
     private static HMatrix create(BufferedReader bufferedreader) throws IOException
     {
         boolean flag = false;
CVSspam 0.2.8