Class AbstractParameterReader
java.lang.Object
org.scictrl.mp.orbitcorrect.accessories.AbstractParameterReader
- Direct Known Subclasses:
DefaultDBReader
,MADInterpreter
,PropertiesReader
Class that give basic methodes implemented in all inherited class.
- Author:
- igor@scictrl.com
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes opened input stream.protected void
debugPrint
(String s) Writes in console aditional debug output, if it is enabled.protected void
debugPrintln.Getter for the fieldproperties
.int
getSourceType.getURL()
Getter for the fielduRL
.void
open method comment.void
open method comment.setProperties
(Properties newProperties) Setter for the fieldproperties
.
-
Field Details
-
tok
File tokenizer -
st
protected int stTokenizer status -
uRL
base URL -
log
protected org.apache.logging.log4j.Logger logLogger
-
-
Constructor Details
-
AbstractParameterReader
public AbstractParameterReader()Constructor for AbstractParameterReader.
-
-
Method Details
-
close
Closes opened input stream. After stream is closed, new stream may be opened and read.- Throws:
DataBushException
- if any.
-
debugPrint
Writes in console aditional debug output, if it is enabled.- Parameters:
s
- java.lang.String- See Also:
-
debugPrintln
debugPrintln.
- Parameters:
s
- java.lang.String
-
getProperties
Getter for the field
properties
.- Returns:
- java.util.Properties
-
getSourceType
public int getSourceType()getSourceType.
- Returns:
- int
-
getURL
Getter for the field
uRL
.- Returns:
- java.net.URL
-
open
open method comment.- Parameters:
file
- aFile
object- Throws:
DataBushException
- if any.
-
open
open method comment.- Parameters:
url
- aURL
object- Throws:
DataBushException
- if any.
-
setProperties
Setter for the field
properties
.- Parameters:
newProperties
- java.util.Properties- Returns:
- a
Properties
object
-