Class PropertiesParser

java.lang.Object
org.drip.feed.loader.PropertiesParser

public class PropertiesParser
extends java.lang.Object
PropertiesParser contains the functionality to load the Field/Value Sets from the Field=Value Format.

Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    PropertiesParser​(java.lang.String fileName)
    Properties Parser Constructor
  • Method Summary

    Modifier and Type Method Description
    double doubleValue​(java.lang.String name)
    Extract the Named Value as a Double
    int integerValue​(java.lang.String name)
    Extract the Named Value as a Integer
    java.lang.String stringValue​(java.lang.String name)
    Extract the Named Value as a String
    java.util.Map<java.lang.String,​java.lang.String> valueMap()
    Retrieve the Map of Property Value

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PropertiesParser

      public PropertiesParser​(java.lang.String fileName) throws java.lang.Exception
      Properties Parser Constructor
      Parameters:
      fileName - Properties File Name
      Throws:
      java.lang.Exception - Thrown if Inputs are Invalid
  • Method Details

    • valueMap

      public java.util.Map<java.lang.String,​java.lang.String> valueMap()
      Retrieve the Map of Property Value
      Returns:
      Map of Property Value
    • stringValue

      public java.lang.String stringValue​(java.lang.String name)
      Extract the Named Value as a String
      Parameters:
      name - The Name
      Returns:
      The Named Value as a String
    • doubleValue

      public double doubleValue​(java.lang.String name) throws java.lang.Exception
      Extract the Named Value as a Double
      Parameters:
      name - The Name
      Returns:
      The Named Value as a Double
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
    • integerValue

      public int integerValue​(java.lang.String name) throws java.lang.Exception
      Extract the Named Value as a Integer
      Parameters:
      name - The Name
      Returns:
      The Named Value as a Integer
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid