org.fhcrc.cpl.toolbox.proteomics.feature.filehandler
Class NativeTSVFeatureFileHandler

java.lang.Object
  extended by org.fhcrc.cpl.toolbox.proteomics.feature.filehandler.BaseFeatureSetFileHandler
      extended by 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


Field Summary
static java.lang.String FILE_TYPE_NAME
           
protected static NativeTSVFeatureFileHandler singletonInstance
           
 
Fields inherited from class org.fhcrc.cpl.toolbox.proteomics.feature.filehandler.BaseFeatureSetFileHandler
dumpWindow
 
Constructor Summary
NativeTSVFeatureFileHandler()
           
 
Method Summary
 boolean canHandleFile(java.io.File file)
          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
static NativeTSVFeatureFileHandler getSingletonInstance()
           
 FeatureSet loadFeatureSet(java.io.File file)
          Load a FeatureSet
 void saveFeatureSet(FeatureSet featureSet, java.io.File outFile)
          Save a FeatureSet
 void saveFeatureSet(FeatureSet featureSet, java.io.PrintWriter out)
          Save a FeatureSet
 
Methods inherited from class org.fhcrc.cpl.toolbox.proteomics.feature.filehandler.BaseFeatureSetFileHandler
getFileTypeName, isXMLFile, setDumpWindow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.fhcrc.cpl.toolbox.proteomics.feature.filehandler.FeatureSetFileHandler
getFileTypeName, setDumpWindow
 

Field Detail

FILE_TYPE_NAME

public static final java.lang.String FILE_TYPE_NAME
See Also:
Constant Field Values

singletonInstance

protected static NativeTSVFeatureFileHandler singletonInstance
Constructor Detail

NativeTSVFeatureFileHandler

public NativeTSVFeatureFileHandler()
Method Detail

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