org.fhcrc.cpl.toolbox.proteomics.feature.filehandler
Class NativeTSVFeatureFileHandler
java.lang.Object
org.fhcrc.cpl.toolbox.proteomics.feature.filehandler.BaseFeatureSetFileHandler
org.fhcrc.cpl.toolbox.proteomics.feature.filehandler.NativeTSVFeatureFileHandler
- All Implemented Interfaces:
- FeatureSetFileHandler
public class NativeTSVFeatureFileHandler
- extends BaseFeatureSetFileHandler
- implements FeatureSetFileHandler
File handler for native msInspect feature files
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_TYPE_NAME
public static final java.lang.String FILE_TYPE_NAME
- See Also:
- Constant Field Values
singletonInstance
protected static NativeTSVFeatureFileHandler singletonInstance
NativeTSVFeatureFileHandler
public NativeTSVFeatureFileHandler()
getSingletonInstance
public static NativeTSVFeatureFileHandler getSingletonInstance()
loadFeatureSet
public FeatureSet loadFeatureSet(java.io.File file)
throws java.io.IOException
- Load a FeatureSet
- Specified by:
loadFeatureSet in interface FeatureSetFileHandler
- Parameters:
file -
- Returns:
-
- Throws:
java.io.IOException
saveFeatureSet
public void saveFeatureSet(FeatureSet featureSet,
java.io.File outFile)
throws java.io.IOException
- Description copied from interface:
FeatureSetFileHandler
- Save a FeatureSet
- Specified by:
saveFeatureSet in interface FeatureSetFileHandler
- Throws:
java.io.IOException
saveFeatureSet
public void saveFeatureSet(FeatureSet featureSet,
java.io.PrintWriter out)
- Save a FeatureSet
- Specified by:
saveFeatureSet in interface FeatureSetFileHandler
- Parameters:
featureSet - out -
canHandleFile
public boolean canHandleFile(java.io.File file)
throws java.io.IOException
- Can this type of file handler handle this specific file?
Implementation is up to the handler, but this should be as low-cost as possible
- Specified by:
canHandleFile in interface FeatureSetFileHandler
- Parameters:
file -
- Returns:
-
- Throws:
java.io.IOException
Fred Hutchinson Cancer Research Center