Class CsvAlignmentDataReader
- java.lang.Object
-
- cern.accsoft.steering.aloha.read.csv.CsvAlignmentDataReader
-
- All Implemented Interfaces:
AlignmentDataReader,HelperDataReader<AlignmentData>,Reader
public class CsvAlignmentDataReader extends java.lang.Object implements AlignmentDataReader
This class reads alignment data from a csv file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCsvAlignmentDataReader.AlignmentDataTypedefines the type of csv-file, which we will are expecting to read.
-
Constructor Summary
Constructors Constructor Description CsvAlignmentDataReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()javax.swing.filechooser.FileFiltergetFileFilter()booleanisHandling(java.util.List<java.io.File> files)AlignmentDataread(java.util.List<java.io.File> files)read and return the data from a given filejava.lang.StringtoString()
-
-
-
Method Detail
-
read
public AlignmentData read(java.util.List<java.io.File> files) throws ReaderException
Description copied from interface:HelperDataReaderread and return the data from a given file- Specified by:
readin interfaceHelperDataReader<AlignmentData>- Parameters:
files- the files to read the data from- Returns:
- the data
- Throws:
ReaderException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceReader- Returns:
- a description of the files to handle
-
getFileFilter
public javax.swing.filechooser.FileFilter getFileFilter()
- Specified by:
getFileFilterin interfaceReader- Returns:
- the file filter which can be used for a file-open dialog.
-
isHandling
public boolean isHandling(java.util.List<java.io.File> files)
- Specified by:
isHandlingin interfaceReader- Parameters:
files- the files to test- Returns:
- true if this Reader can handle all the given files, false if not
-
-