|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.imports.SequenceReaderFactoryImpl
This default implementation of SequenceReaderFactory allows to read sequence files in the following formats:
| Constructor Summary | |
SequenceReaderFactoryImpl()
|
|
| Method Summary | |
void |
addReader(SequenceReader r)
This SequenceReaderFactory supports the addition of new SequenceReaders at runtime. |
protected ReaderType |
findReaderTypeFromExtension(java.lang.String ext)
|
ReaderType[] |
getSupportedTypes()
Returns the ReaderTypes supported by this factory implementation. |
ReaderType |
guessReaderType(java.lang.String filename)
Attempt to determine a ReaderType suitable to parse the sequence encoding from a filename extension. |
static void |
main(java.lang.String[] args)
Test of the factory implementation. |
AnnotatedBioSequence[] |
readSequences(java.io.InputStream seqstream,
ReaderType type)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SequenceReaderFactoryImpl()
| Method Detail |
public void addReader(SequenceReader r)
public ReaderType[] getSupportedTypes()
SequenceReaderFactory
getSupportedTypes in interface SequenceReaderFactorypublic AnnotatedBioSequence[] readSequences(java.io.InputStream seqstream, ReaderType type) throws edu.mssm.crover.imports.UnregisteredReaderTypeException, UnsupportedFileFormatException, SyntaxErrorException
readSequences in interface SequenceReaderFactoryedu.mssm.crover.imports.UnregisteredReaderTypeException
UnsupportedFileFormatException
SyntaxErrorExceptionpublic ReaderType guessReaderType(java.lang.String filename)
guessReaderType in interface SequenceReaderFactoryprotected ReaderType findReaderTypeFromExtension(java.lang.String ext)
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||