Class PropertyFileStaticDataCollector


  • public class PropertyFileStaticDataCollector
    extends AStaticDataCollector
    Data collector that collects data in form of ITracePoint2D instances from a property file ( Properties).

    Author:
    Achim Westermann
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyFileStaticDataCollector​(ITrace2D trace, java.io.InputStream propertyFileStream)
      Constructor with target trace and property file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void collectData()
      Collects all ITracePoint instances from it's underlying source and adds it to the internal trace.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertyFileStaticDataCollector

        public PropertyFileStaticDataCollector​(ITrace2D trace,
                                               java.io.InputStream propertyFileStream)
        Constructor with target trace and property file.

        Parameters:
        trace - the target trace to add data to.
        propertyFileStream - the stream of the file in the Properties format where TracePoint2D instances (key is x, value is y) is parsed from.
    • Method Detail

      • collectData

        public void collectData()
                         throws java.io.FileNotFoundException,
                                java.io.IOException
        Description copied from class: AStaticDataCollector
        Collects all ITracePoint instances from it's underlying source and adds it to the internal trace.

        Specified by:
        collectData in class AStaticDataCollector
        Throws:
        java.io.IOException - if parsing or IO operations fails.
        java.io.FileNotFoundException
        See Also:
        AStaticDataCollector.collectData()