Class AbstractParameterReader

java.lang.Object
org.scictrl.mp.orbitcorrect.accessories.AbstractParameterReader
Direct Known Subclasses:
DefaultDBReader, MADInterpreter, PropertiesReader

public abstract class AbstractParameterReader extends Object
Class that give basic methodes implemented in all inherited class.
Author:
igor@scictrl.com
  • Field Details

    • tok

      protected FileTokenizer tok
      File tokenizer
    • st

      protected int st
      Tokenizer status
    • uRL

      protected URL uRL
      base URL
    • log

      protected org.apache.logging.log4j.Logger log
      Logger
  • Constructor Details

    • AbstractParameterReader

      public AbstractParameterReader()

      Constructor for AbstractParameterReader.

  • Method Details

    • close

      public void close() throws DataBushException
      Closes opened input stream. After stream is closed, new stream may be opened and read.
      Throws:
      DataBushException - if any.
    • debugPrint

      protected void debugPrint(String s)
      Writes in console aditional debug output, if it is enabled.
      Parameters:
      s - java.lang.String
      See Also:
    • debugPrintln

      protected void debugPrintln(String s)

      debugPrintln.

      Parameters:
      s - java.lang.String
    • getProperties

      public Properties getProperties()

      Getter for the field properties.

      Returns:
      java.util.Properties
    • getSourceType

      public int getSourceType()

      getSourceType.

      Returns:
      int
    • getURL

      public URL getURL()

      Getter for the field uRL.

      Returns:
      java.net.URL
    • open

      public void open(File file) throws DataBushException
      open method comment.
      Parameters:
      file - a File object
      Throws:
      DataBushException - if any.
    • open

      public void open(URL url) throws DataBushException
      open method comment.
      Parameters:
      url - a URL object
      Throws:
      DataBushException - if any.
    • setProperties

      public Properties setProperties(Properties newProperties)

      Setter for the field properties.

      Parameters:
      newProperties - java.util.Properties
      Returns:
      a Properties object