Package info.monitorenter.gui.chart.io
Class PropertyFileStaticDataCollector
- java.lang.Object
-
- info.monitorenter.gui.chart.io.AStaticDataCollector
-
- info.monitorenter.gui.chart.io.PropertyFileStaticDataCollector
-
public class PropertyFileStaticDataCollector extends AStaticDataCollector
Data collector that collects data in form ofITracePoint2D
instances from a property file (Properties
).- Author:
- Achim Westermann
-
-
Field Summary
-
Fields inherited from class info.monitorenter.gui.chart.io.AStaticDataCollector
m_trace
-
-
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 allITracePoint
instances from it's underlying source and adds it to the internal trace.-
Methods inherited from class info.monitorenter.gui.chart.io.AStaticDataCollector
getTrace
-
-
-
-
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 theProperties
format whereTracePoint2D
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 allITracePoint
instances from it's underlying source and adds it to the internal trace.- Specified by:
collectData
in classAStaticDataCollector
- Throws:
java.io.IOException
- if parsing or IO operations fails.java.io.FileNotFoundException
- See Also:
AStaticDataCollector.collectData()
-
-