public class BaseClasspathConditionsReader extends ConditionsReader
Modifier and Type | Field and Description |
---|---|
(package private) String |
_detectorName |
private String |
_resourcePath |
(package private) int |
_runNumber |
(package private) String |
propFileName |
Constructor and Description |
---|
BaseClasspathConditionsReader() |
BaseClasspathConditionsReader(String resourcePath) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the reader.
|
InputStream |
open(String name,
String type)
Open an InputStream to conditions data by name and type.
|
void |
setResourcePath(String resourcePath)
Set the base path for this reader to search for classpath resources.
|
boolean |
update(ConditionsManager manager,
String detectorName,
int run)
Update this reader for possibly new detector or run number.
|
addAlias, createDummy, getDetectorNames
private String _resourcePath
String propFileName
int _runNumber
String _detectorName
public BaseClasspathConditionsReader()
public BaseClasspathConditionsReader(String resourcePath) throws IOException
IOException
public InputStream open(String name, String type) throws IOException
IOException
if the conditions do not exist.open
in class ConditionsReader
IOException
public void setResourcePath(String resourcePath)
resourcePath
- the resource pathpublic boolean update(ConditionsManager manager, String detectorName, int run) throws IOException
update
in class ConditionsReader
IOException
- if the reader fails to update for any other reason.public void close() throws IOException
close
in class ConditionsReader
IOException
- neverCopyright © 2016 Linear Collider Detector (LCD). All rights reserved.