Print

Print


Commit in java/trunk/conditions/src/main/java/org/hps/conditions on MAIN
HpsConditionsReader.java-45451 removed
Remove this class.  It was already put into the deprecated package.

java/trunk/conditions/src/main/java/org/hps/conditions
HpsConditionsReader.java removed after 451
--- java/trunk/conditions/src/main/java/org/hps/conditions/HpsConditionsReader.java	2014-04-03 22:13:15 UTC (rev 451)
+++ java/trunk/conditions/src/main/java/org/hps/conditions/HpsConditionsReader.java	2014-04-03 22:50:13 UTC (rev 452)
@@ -1,45 +0,0 @@
-package org.hps.conditions;
-
-import java.io.IOException;
-import java.io.InputStream;
-import org.lcsim.conditions.ConditionsManager;
-import org.lcsim.conditions.ConditionsReader;
-
-/**
- * 
- * @author Sho Uemura <[log in to unmask]>
- * @version $Id: HpsConditionsReader.java,v 1.3 2012/11/20 19:56:40 meeg Exp $
- */
-// FIXME: Move to conditions.deprecated package and update detector.properties files.
-public class HpsConditionsReader extends ConditionsReader {
-
-    private String detectorName = null;
-    private int run;
-
-    public HpsConditionsReader(ConditionsReader reader) {
-    }
-
-    @Override
-    public InputStream open(String name, String type) throws IOException {
-        InputStream in = getClass().getResourceAsStream("/" + detectorName + "/" + name + "." + type);
-        if (in == null) {
-            in = getClass().getResourceAsStream("/org/hps/calib/proposal2014/" + name + "." + type);
-            if (in == null) {
-                throw new IOException("Conditions " + name + " for " + detectorName + " with type " + type + " were not found");
-            }
-        }
-        return in;
-    }
-
-    @Override
-    public void close() throws IOException {
-    }
-
-    @Override
-    protected boolean update(ConditionsManager manager, String detectorName, int run) throws IOException {
-        this.detectorName = detectorName;
-        this.run = run;
-
-        return true;
-    }
-}
SVNspam 0.1