public class PropertyFileStaticDataCollector extends AStaticDataCollector
ITracePoint2D
instances from a property
file ( Properties
).
m_trace
Constructor and Description |
---|
PropertyFileStaticDataCollector(ITrace2D trace,
InputStream propertyFileStream)
Constructor with target trace and property file.
|
Modifier and Type | Method and Description |
---|---|
void |
collectData()
Collects all
ITracePoint instances from it's underlying
source and adds it to the internal trace. |
getTrace
public PropertyFileStaticDataCollector(ITrace2D trace, InputStream propertyFileStream)
trace
- the target trace to add data to.propertyFileStream
- the stream of the file in the Properties
format where ITracePoint2D
instances (key is x, value is y) is parsed from.public void collectData() throws FileNotFoundException, IOException
AStaticDataCollector
ITracePoint
instances from it's underlying
source and adds it to the internal trace.
collectData
in class AStaticDataCollector
IOException
- if parsing or IO operations fails.FileNotFoundException
AStaticDataCollector.collectData()
Copyright © 2019. All rights reserved.