Class PropertiesReader
java.lang.Object
org.scictrl.mp.orbitcorrect.accessories.AbstractParameterReader
org.scictrl.mp.orbitcorrect.accessories.PropertiesReader
- All Implemented Interfaces:
IDataBushReader
PropertiesReader is used to read input files and return the ElementList of
elements in storage ring.
- Author:
- igor@scictrl.com
-
Field Summary
Fields inherited from class org.scictrl.mp.orbitcorrect.accessories.AbstractParameterReader
log, st, tok, uRL
Fields inherited from interface org.scictrl.mp.orbitcorrect.IDataBushReader
ST_FILE, ST_URL
-
Constructor Summary
-
Method Summary
Methods inherited from class org.scictrl.mp.orbitcorrect.accessories.AbstractParameterReader
close, debugPrint, debugPrintln, getProperties, getSourceType, getURL, setProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.scictrl.mp.orbitcorrect.IDataBushReader
close, getProperties, getSourceType, setProperties
-
Constructor Details
-
PropertiesReader
public PropertiesReader()Constructor.
-
-
Method Details
-
getList
Returns list of instances of DataBush elements created byread()
method. Returns list of elements created by DefaultDBReader. Elements are stored inElementList
list. List is created and filled after call toread()
method.- Specified by:
getList
in interfaceIDataBushReader
- Returns:
ElementList
list of read elements
-
open
open method comment. Openes input file.- Specified by:
open
in interfaceIDataBushReader
- Overrides:
open
in classAbstractParameterReader
- Parameters:
file
- aFile
object- Throws:
DataBushException
- if any.
-
open
open method comment. Openes input URL.- Specified by:
open
in interfaceIDataBushReader
- Overrides:
open
in classAbstractParameterReader
- Parameters:
url
- aURL
object- Throws:
DataBushException
- if any.
-
read
Reads input and creates DataBush elements. Input must be opened with one ofParameterReader.openInStream
methods. Created elements are stored and returned inElementList
. Reads input and creates DataBush elements. Input must be opened with one ofParameterReader.openInStream
methods. Created instances of DataBush elements are stored and returned inElementList
. Call read only once per new opened stream.- Specified by:
read
in interfaceIDataBushReader
- Returns:
ElementList
list of created elements- Throws:
DataBushException
- if any.
-
read
public ElementList<AbstractDataBushElement> read(ElementList<AbstractDataBushElement> l) throws DataBushException Reads input and creates DataBush elements. Input must be opened with one ofParameterReader.openInStream
methods. Created elements are stored and returned inElementList
. Reads input and creates DataBush elements. Input must be opened with one ofParameterReader.openInStream
methods. Created instances of DataBush elements are stored and returned inElementList
. Call read only once per new opened stream.- Specified by:
read
in interfaceIDataBushReader
- Parameters:
l
- aElementList
object- Returns:
ElementList
list of created elements- Throws:
DataBushException
- if any.
-