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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes opened input stream.protected voiddebugPrint(String s) Writes in console aditional debug output, if it is enabled.protected voiddebugPrintln.Getter for the fieldproperties.intgetSourceType.getURL()Getter for the fielduRL.voidopen method comment.voidopen 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- aFileobject- Throws:
DataBushException- if any.
-
open
open method comment.- Parameters:
url- aURLobject- Throws:
DataBushException- if any.
-
setProperties
Setter for the field
properties.- Parameters:
newProperties- java.util.Properties- Returns:
- a
Propertiesobject
-