|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.io.identifications.IdfileReaderFactory
public class IdfileReaderFactory
This factory will provide the appropriate identification file reader for each type of file. Null when the format is not supported.
Method Summary | |
---|---|
IdfileReader |
getFileReader(java.io.File aFile,
WaitingHandler waitingHandler)
This method returns the proper identification file reader depending on the format of the provided file. |
static IdfileReaderFactory |
getInstance()
A static method to retrieve the instance of the factory. |
int |
getSearchEngine(java.io.File aFile)
This method return the search engine corresponding to the given file. |
static java.lang.Class |
registerIdFileReader(java.lang.Class aReader,
java.lang.String aExtension)
This method registers a new IdfileReader Class, and the file extension it can read from. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IdfileReaderFactory getInstance()
public static java.lang.Class registerIdFileReader(java.lang.Class aReader, java.lang.String aExtension)
aReader
- Class of the IdfileReader to register.aExtension
- String with the extension of the file that this IdfileReader implementation can read.
public IdfileReader getFileReader(java.io.File aFile, WaitingHandler waitingHandler) throws org.xml.sax.SAXException, java.io.FileNotFoundException, java.io.IOException
aFile
- the file to parsewaitingHandler
- a waiting handler to display the results. Can be
null
org.xml.sax.SAXException
java.io.FileNotFoundException
java.io.IOException
public int getSearchEngine(java.io.File aFile)
aFile
- an identification file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |