Package pulse.io.readers
Interface AbstractHandler
-
- All Superinterfaces:
Reflexive
- All Known Subinterfaces:
AbstractPopulator<T>,AbstractReader<T>,CurveReader,DatasetReader,PulseDataReader
- All Known Implementing Classes:
ButcherTableauReader,DATReader,LFRReader,MetaFilePopulator,NetzschCSVReader,NetzschPulseCSVReader,QuadratureReader,TBLReader
public interface AbstractHandler extends Reflexive
There are two types ofAbstractHandlers, which are used to either update/populate existing objects or convert data into new objects of a given type. The superclass contains basic methods of checking compliance to a pre-set extension.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static booleanextensionsMatch(File file, String extension)Checks if the file suffix forfilematches theextension.StringgetSupportedExtension()Retrieves the supported extension of files, which thisAbstractHandleris able to process.default booleanisExtensionSupported(File file)InvokesextensionMatchwith the second argument set asgetSupportedExtension().
-
-
-
Method Detail
-
getSupportedExtension
String getSupportedExtension()
Retrieves the supported extension of files, which thisAbstractHandleris able to process.- Returns:
- a
String(usually, lower-case) containing the supported extension.
-
extensionsMatch
static boolean extensionsMatch(File file, String extension)
Checks if the file suffix forfilematches theextension.- Parameters:
file- theFileto processextension- a String, which needs to be checked against the suffix ofFile- Returns:
falseiffileis a directory or if it has a suffix different fromextension. True otherwise.
-
isExtensionSupported
default boolean isExtensionSupported(File file)
InvokesextensionMatchwith the second argument set asgetSupportedExtension().- Parameters:
file- the file to be checked- Returns:
trueif extensions match, false otherwise.- See Also:
extensionsMatch(java.io.File,java.lang.String),getSupportedExtension()
-
-