Package pulse.io.readers
Interface CurveReader
-
- All Superinterfaces:
AbstractHandler,AbstractReader<List<ExperimentalData>>,Reflexive
- All Known Implementing Classes:
DATReader,LFRReader,NetzschCSVReader
public interface CurveReader extends AbstractReader<List<ExperimentalData>>
Basic interface for readingExperimentalData(which extendsHeatingCurve-- hence the name).In addition to providing the functionality of an
AbstractReader, this interface provides specific methods to read and sort multipleExperimentalDataobjects.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ExperimentalData>read(File file)Basic operation for reading thefileand converting this to aListofExperimentalDataobjects.static List<ExperimentalData>sort(List<ExperimentalData> array)Sorts theListofExperimentalDataaccording to their external IDs (if any).-
Methods inherited from interface pulse.io.readers.AbstractHandler
getSupportedExtension, isExtensionSupported
-
-
-
-
Method Detail
-
read
List<ExperimentalData> read(File file) throws IOException
Basic operation for reading thefileand converting this to aListofExperimentalDataobjects.- Specified by:
readin interfaceAbstractReader<List<ExperimentalData>>- Parameters:
file- aFilewhich has either all information encoded in its contents or providesURIlinks to other files, each containing the necessary information.- Returns:
a
ListofExperimentalDataobjects associated with thisfile. In case iffilecontains only oneExperimentalData, i.e. if the data is only presented for one heating curve taken at a specific temperature after a single laser shot, the size of theListwill be equal to unity.- Throws:
IOException- if something goes wrong with reading the file
-
sort
static List<ExperimentalData> sort(List<ExperimentalData> array)
Sorts theListofExperimentalDataaccording to their external IDs (if any).- Parameters:
array- an unsorted list ofExperimentalData- Returns:
- the same list after sorting
-
-