Package pulse.io.readers
Class NetzschPulseCSVReader
- java.lang.Object
-
- pulse.io.readers.NetzschPulseCSVReader
-
- All Implemented Interfaces:
AbstractHandler,AbstractReader<NumericPulseData>,PulseDataReader,Reflexive
public class NetzschPulseCSVReader extends Object implements PulseDataReader
Reads numeric pulse data generated by the Proteus LFA Analysis export tool. The data must have a decimal point separator and should follow, in general, the same rules set by the NetzschPulseCSVReader- See Also:
pulse.io.reader.NetzschCSVReader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PulseDataReadergetInstance()As this class uses the singleton pattern, only one instance is created using an empty no-argument constructor.StringgetSupportedExtension()Retrieves the supported extension of files, which thisAbstractHandleris able to process.NumericPulseDataread(File file)This performs a basic check, finding the shot ID, which is then passed to a newNumericPulseDataobject.The latter is populated using the time-power sequence stored in this file.If the "Laser_pulse_data" keyword is not found, the method will display an error.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pulse.io.readers.AbstractHandler
isExtensionSupported
-
-
-
-
Method Detail
-
getSupportedExtension
public String getSupportedExtension()
Description copied from interface:AbstractHandlerRetrieves the supported extension of files, which thisAbstractHandleris able to process.- Specified by:
getSupportedExtensionin interfaceAbstractHandler- Returns:
- The supported extension (
.csv).
-
read
public NumericPulseData read(File file) throws IOException
This performs a basic check, finding the shot ID, which is then passed to a newNumericPulseDataobject.The latter is populated using the time-power sequence stored in this file.If the "Laser_pulse_data" keyword is not found, the method will display an error.- Specified by:
readin interfaceAbstractReader<NumericPulseData>- Specified by:
readin interfacePulseDataReader- Parameters:
file-- Returns:
- a new
NumericPulseDataobject encapsulating the contents offile - Throws:
IOException
-
getInstance
public static PulseDataReader getInstance()
As this class uses the singleton pattern, only one instance is created using an empty no-argument constructor.- Returns:
- the single instance of this class.
-
-